feat(task): 暴露任务取消控制状态

This commit is contained in:
chengcheng
2026-06-25 17:01:32 +08:00
parent 6089aa6085
commit f4e1db1279
4 changed files with 49 additions and 0 deletions
+3
View File
@@ -446,6 +446,9 @@ type GatewayTask struct {
AsyncMode bool `json:"asyncMode"`
RiverJobID int64 `json:"riverJobId,omitempty"`
Status string `json:"status"`
Cancellable *bool `json:"cancellable,omitempty"`
Submitted *bool `json:"submitted,omitempty"`
Message string `json:"message,omitempty"`
AttemptCount int `json:"attemptCount"`
RemoteTaskID string `json:"remoteTaskId,omitempty"`
RemoteTaskPayload map[string]any `json:"remoteTaskPayload,omitempty"`