Browse Source

调整收发通知节点

pull/54/head
JeshuaRen 4 months ago
parent
commit
7be564b435
2 changed files with 8 additions and 7 deletions
  1. +2
    -1
      sdks/pcmscheduler/models.go
  2. +6
    -6
      sdks/scheduler/models.go

+ 2
- 1
sdks/pcmscheduler/models.go View File

@@ -102,7 +102,8 @@ const (
Inference = "Inference" Inference = "Inference"
Train = "Train" Train = "Train"


BroadcastWait = "All"
BroadcastWait = "BroadcastWait"
WaitBroadcast = "WaitBroadcast"
Broadcast = "Broadcast" Broadcast = "Broadcast"
Wait = "Wait" Wait = "Wait"
) )


+ 6
- 6
sdks/scheduler/models.go View File

@@ -188,19 +188,19 @@ type UploadJobInfo struct {
type BroadcastWaitInfo struct { type BroadcastWaitInfo struct {
serder.Metadata `union:"BroadcastWait"` serder.Metadata `union:"BroadcastWait"`
JobInfoBase JobInfoBase
Type string `json:"type"`
HandleType string `json:"handleType"`
Broadcast Broadcast `json:"broadcast"`
Wait Wait `json:"wait"`
Type string `json:"type"`
HandleType string `json:"handleType"`
Broadcast []Broadcast `json:"broadcast"`
Wait []Wait `json:"wait"`
} }


type Broadcast struct { type Broadcast struct {
NextJobSetID JobSetID `json:"nextJobSetID"` NextJobSetID JobSetID `json:"nextJobSetID"`
NextLocalJobID JobID `json:"nextLocalJobID"`
NextLocalJobID string `json:"nextLocalJobID"`
} }


type Wait struct { type Wait struct {
WaitJobIDs []JobID `json:"waitJobIDs"`
WaitJobID string `json:"waitJobID"`
} }


type NotifyJobInfo struct { type NotifyJobInfo struct {


Loading…
Cancel
Save