Browse Source

调整数据调度路径

pull/52/head
JeshuaRen 1 year ago
parent
commit
a7dc1ec0bc
1 changed files with 32 additions and 3 deletions
  1. +32
    -3
      sdks/scheduler/models.go

+ 32
- 3
sdks/scheduler/models.go View File

@@ -192,9 +192,38 @@ type HPCParameter struct {
}

type HPCBindingFile struct {
ParamName string `json:"paramName"`
ObjectID cdssdk.ObjectID `json:"objectID"`
Path string `json:"path"`
ParamName string `json:"paramName"`
Resource HPCFile `json:"resource"`
}

type HPCFile interface {
Noop()
}

var HPCFileTypeUnion = types.NewTypeUnion[HPCFile](
(*HPCObject)(nil),
(*HPCPath)(nil),
)

var _ = serder.UseTypeUnionInternallyTagged(&HPCFileTypeUnion, "type")

type HPCFileBase struct{}

func (d *HPCFileBase) Noop() {}

type HPCObject struct {
serder.Metadata `union:"object"`
HPCFileBase
Type string `json:"type"`
ObjectID cdssdk.ObjectID `json:"objectID"`
}

type HPCPath struct {
serder.Metadata `union:"path"`
HPCFileBase
Type string `json:"type"`
PackageID cdssdk.PackageID `json:"packageID"`
Path string `json:"path"`
}

type JobResources struct {


Loading…
Cancel
Save