Browse Source

工作流状态变更

pull/52/head
JeshuaRen 6 months ago
parent
commit
c8b2ef2afc
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      sdks/scheduler/models.go

+ 7
- 0
sdks/scheduler/models.go View File

@@ -70,6 +70,7 @@ var JobInfoTypeUnion = types.NewTypeUnion[JobInfo](
(*HPCJobInfo)(nil),
(*BindingJobInfo)(nil),
(*PCMInferenceJobInfo)(nil),
(*FinishJobInfo)(nil),
)
var _ = serder.UseTypeUnionInternallyTagged(&JobInfoTypeUnion, "type")

@@ -148,6 +149,12 @@ type AIJobInfo struct {
ResourceChoice ResourceChoice `json:"resourceChoice"`
}

type FinishJobInfo struct {
serder.Metadata `union:"finish"`
JobInfoBase
Type string `json:"type"`
}

type ResourceChoice struct {
Type string `json:"type"`
ResourceScopes []ResourceScope `json:"resourceScopes"`


Loading…
Cancel
Save