Browse Source

Merge pull request '通算任务增加字段' (#62) from feature_zj into feature_rzs

feature_zj
JeshuaRen 2 months ago
parent
commit
ee0c7039a7
2 changed files with 5 additions and 2 deletions
  1. +4
    -2
      sdks/cloud/job.go
  2. +1
    -0
      sdks/scheduler/models.go

+ 4
- 2
sdks/cloud/job.go View File

@@ -2,11 +2,12 @@ package cloud

import (
"fmt"
"net/url"
"strings"

schsdk "gitlink.org.cn/cloudream/common/sdks/scheduler"
"gitlink.org.cn/cloudream/common/utils/http2"
"gitlink.org.cn/cloudream/common/utils/serder"
"net/url"
"strings"
)

//type CreateParam struct {
@@ -40,6 +41,7 @@ type CreateCloudJobReq struct {
MountPath string `json:"mountPath,omitempty"`
Args []string `json:"args,omitempty"`
Envs []interface{} `json:"envs,omitempty"`
Capacity int32 `json:"capacity,omitempty"`
}

// type T2 struct {


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

@@ -228,6 +228,7 @@ type CloudJobInfo struct {
MountPath string `json:"mountPath,omitempty"`
Args []string `json:"args,omitempty"`
Envs []interface{} `json:"envs,omitempty"`
Capacity int32 `json:"capacity,omitempty"`
}

type NotifyJobInfo struct {


Loading…
Cancel
Save