From 7cb79231aec30d4d758db0c0a4f9ef6807796f08 Mon Sep 17 00:00:00 2001 From: JeshuaRen <270813223@qq.com> Date: Fri, 11 Apr 2025 10:10:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=9B=E5=BB=BApackage?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdks/hpc/job.go | 13 +++++++------ sdks/scheduler/models.go | 17 +++++++++-------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/sdks/hpc/job.go b/sdks/hpc/job.go index c102fc6..5fc8d08 100644 --- a/sdks/hpc/job.go +++ b/sdks/hpc/job.go @@ -10,12 +10,13 @@ import ( ) type CreateHPCJobReq struct { - Name string `json:"name"` - Description string `json:"description"` - ClusterID schsdk.ClusterID `json:"clusterId"` - Backend string `json:"backend"` - App string `json:"app"` - OperateType string `json:"operateType"` + Name string `json:"name"` + Description string `json:"description"` + ClusterID schsdk.ClusterID `json:"clusterId"` + Backend string `json:"backend"` + App string `json:"app"` + OperateType string `json:"operateType"` + ScriptContent string `json:"scriptContent"` //Parameters HPCParameter `json:"parameters"` Parameters map[string]string `json:"parameters"` } diff --git a/sdks/scheduler/models.go b/sdks/scheduler/models.go index 57039b1..136ded1 100644 --- a/sdks/scheduler/models.go +++ b/sdks/scheduler/models.go @@ -164,14 +164,15 @@ type ModelBinding struct { type HPCJobInfo struct { serder.Metadata `union:"HPC"` JobInfoBase - Type string `json:"type"` - Name string `json:"name"` - Description string `json:"description"` - ClusterID ClusterID `json:"clusterID"` - Backend string `json:"backend"` - App string `json:"app"` - OperateType string `json:"operateType"` - Parameters HPCParameter `json:"parameters"` + Type string `json:"type"` + Name string `json:"name"` + Description string `json:"description"` + ClusterID ClusterID `json:"clusterID"` + Backend string `json:"backend"` + App string `json:"app"` + OperateType string `json:"operateType"` + ScriptContent string `json:"scriptContent"` + Parameters HPCParameter `json:"parameters"` } type HPCParameter struct {