Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Use stop instead of cancel for stopping the current running stage.

天舟8693453fedde
diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vue
index af0e1d099d..3312e926db 100644
--- a/frontend/src/views/TaskDetail.vue
+++ b/frontend/src/views/TaskDetail.vue
@@ -157,7 +157,7 @@ import {
TaskTemplate,
} from "../plugins";
-type StageTransitionType = "RUN" | "RETRY" | "CANCEL" | "SKIP";
+type StageTransitionType = "RUN" | "RETRY" | "STOP" | "SKIP";
const CREATOR_APPLICABLE_STAGE_ACTION_LIST: Map<
StageStatus,
@@ -175,7 +175,7 @@ const ASSIGNEE_APPLICABLE_STAGE_ACTION_LIST: Map<
StageTransitionType[]
> = new Map([
["PENDING", ["RUN", "SKIP"]],
- ["RUNNING", ["CANCEL"]],
+ ["RUNNING", ["STOP"]],
["DONE", []],
["FAILED", ["RETRY", "SKIP"]],
["SKIPPED", []],
@@ -223,8 +223,8 @@ const STAGE_TRANSITION_LIST: Transition[] = [
to: "RUNNING",
},
{
- type: "CANCEL",
- actionName: "Cancel",
+ type: "STOP",
+ actionName: "Stop",
actionType: ActionType.PRIMARY,
requireRunnable: true,
to: "PENDING",