From a99fc4c9bdfd11ebf4a66aa2a51d8185a0eef6dd Mon Sep 17 00:00:00 2001 From: tzwang Date: Mon, 10 Mar 2025 15:44:52 +0800 Subject: [PATCH] updated runtaskreq param --- desc/schedule/pcm-schedule.api | 9 +-------- internal/types/types.go | 12 +++--------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/desc/schedule/pcm-schedule.api b/desc/schedule/pcm-schedule.api index 903e9494..d5b5d6e3 100644 --- a/desc/schedule/pcm-schedule.api +++ b/desc/schedule/pcm-schedule.api @@ -204,6 +204,7 @@ type ( CodeDistribute { DataName string `json:"dataName,optional"` PackageID int64 `json:"packageID"` + Output string `json:"output"` Clusters []*ClusterScheduled `json:"clusters"` } @@ -239,17 +240,9 @@ type ( // 启动任务(资源已就绪):/runTask RunTaskReq { TaskID int64 `json:"taskID"` - JobSetID string `json:"jobSetID"` - DataReturnInfos []*DataReturnInfo `json:"dataReturnInfos"` ScheduledDatas []*DataScheduleResults `json:"scheduledDatas,optional"` } - DataReturnInfo { - - LocalJobID string `json:"localJobID"` - Output string `json:"output"` - } - DataScheduleResults { DataType string `json:"dataType"` Results []*DataScheduleResult `json:"results"` diff --git a/internal/types/types.go b/internal/types/types.go index f8cf0229..e633fe24 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -5975,6 +5975,7 @@ type DatasetDistribute struct { type CodeDistribute struct { DataName string `json:"dataName,optional"` PackageID int64 `json:"packageID"` + Output string `json:"output"` Clusters []*ClusterScheduled `json:"clusters"` } @@ -6008,15 +6009,8 @@ type ScheduleData struct { } type RunTaskReq struct { - TaskID int64 `json:"taskID"` - JobSetID string `json:"jobSetID"` - DataReturnInfos []*DataReturnInfo `json:"dataReturnInfos"` - ScheduledDatas []*DataScheduleResults `json:"scheduledDatas,optional"` -} - -type DataReturnInfo struct { - LocalJobID string `json:"localJobID"` - Output string `json:"output"` + TaskID int64 `json:"taskID"` + ScheduledDatas []*DataScheduleResults `json:"scheduledDatas,optional"` } type DataScheduleResults struct {