From 2da6786da693f6b3118378f4ac6bbb2684770575 Mon Sep 17 00:00:00 2001 From: jagger Date: Tue, 9 Sep 2025 15:15:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=AE=97=E4=BB=BB=E5=8A=A1=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdks/cloud/job.go | 6 ++++-- sdks/scheduler/models.go | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sdks/cloud/job.go b/sdks/cloud/job.go index ac66517..bd48922 100644 --- a/sdks/cloud/job.go +++ b/sdks/cloud/job.go @@ -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 { diff --git a/sdks/scheduler/models.go b/sdks/scheduler/models.go index 0ed48eb..c3ac800 100644 --- a/sdks/scheduler/models.go +++ b/sdks/scheduler/models.go @@ -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 {