From a45f6cf4eddbb7eefe36ab0c7cc86a993daa9b17 Mon Sep 17 00:00:00 2001 From: tzwang Date: Fri, 7 Mar 2025 16:05:29 +0800 Subject: [PATCH] updated runtaskreq param --- desc/schedule/pcm-schedule.api | 7 ++++++- internal/types/types.go | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/desc/schedule/pcm-schedule.api b/desc/schedule/pcm-schedule.api index 1863f3786..d321f7f1e 100644 --- a/desc/schedule/pcm-schedule.api +++ b/desc/schedule/pcm-schedule.api @@ -239,9 +239,14 @@ type ( // 启动任务(资源已就绪):/runTask RunTaskReq { TaskID int64 `json:"taskID"` + DataReturnInfo DataReturnInfo `json:"dataReturnInfo"` + ScheduledDatas []*DataScheduleResults `json:"scheduledDatas,optional"` + } + + DataReturnInfo { JobSetID string `json:"jobSetID"` LocalJobID string `json:"localJobID"` - ScheduledDatas []*DataScheduleResults `json:"scheduledDatas,optional"` + Output string `json:"output"` } DataScheduleResults { diff --git a/internal/types/types.go b/internal/types/types.go index bc2233d24..3d93e5f3e 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -6009,11 +6009,16 @@ type ScheduleData struct { type RunTaskReq struct { TaskID int64 `json:"taskID"` - JobSetID string `json:"jobSetID"` - LocalJobID string `json:"localJobID"` + DataReturnInfo DataReturnInfo `json:"dataReturnInfo"` ScheduledDatas []*DataScheduleResults `json:"scheduledDatas,optional"` } +type DataReturnInfo struct { + JobSetID string `json:"jobSetID"` + LocalJobID string `json:"localJobID"` + Output string `json:"output"` +} + type DataScheduleResults struct { DataType string `json:"dataType"` Results []*DataScheduleResult `json:"results"`