From 28788c7df69f8ae19ad565b548da643dbd52e825 Mon Sep 17 00:00:00 2001 From: Xin Xiu <2313466338@qq.com> Date: Tue, 17 Oct 2023 18:19:04 +0800 Subject: [PATCH] Fix When the task instance status is 'STOP' (#14967) * Fix When the task instance status is 'STOP' * Fix ITaskState types sort by ID --------- Co-authored-by: Eric Gao Co-authored-by: xiangzihao <460888207@qq.com> --- dolphinscheduler-ui/src/common/common.ts | 8 ++++++++ dolphinscheduler-ui/src/common/types.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/dolphinscheduler-ui/src/common/common.ts b/dolphinscheduler-ui/src/common/common.ts index b1aae9b9d6..261e8271c7 100644 --- a/dolphinscheduler-ui/src/common/common.ts +++ b/dolphinscheduler-ui/src/common/common.ts @@ -220,6 +220,14 @@ export const tasksState = (t: any): ITaskStateConfig => ({ isSpin: false, classNames: 'pause' }, + STOP: { + id: 5, + desc: `${t('project.workflow.stop')}`, + color: '#e90101', + icon: StopOutlined, + isSpin: false, + classNames: 'stop' + }, FAILURE: { id: 6, desc: `${t('project.workflow.failed')}`, diff --git a/dolphinscheduler-ui/src/common/types.ts b/dolphinscheduler-ui/src/common/types.ts index ec40e638b5..c6d9eecc07 100644 --- a/dolphinscheduler-ui/src/common/types.ts +++ b/dolphinscheduler-ui/src/common/types.ts @@ -20,6 +20,7 @@ export type ITaskState = | 'SUBMITTED_SUCCESS' | 'RUNNING_EXECUTION' | 'PAUSE' + | 'STOP' | 'FAILURE' | 'SUCCESS' | 'NEED_FAULT_TOLERANCE'