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"
Train = "Train"

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


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

@@ -188,19 +188,19 @@ type UploadJobInfo struct {
type BroadcastWaitInfo struct {
serder.Metadata `union:"BroadcastWait"`
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 {
NextJobSetID JobSetID `json:"nextJobSetID"`
NextLocalJobID JobID `json:"nextLocalJobID"`
NextLocalJobID string `json:"nextLocalJobID"`
}

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

type NotifyJobInfo struct {


Loading…
Cancel
Save