Browse Source

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 <ericgao.apache@gmail.com>
Co-authored-by: xiangzihao <460888207@qq.com>
3.2.1-prepare
Xin Xiu 1 year ago committed by GitHub
parent
commit
28788c7df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dolphinscheduler-ui/src/common/common.ts
  2. 1
      dolphinscheduler-ui/src/common/types.ts

8
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')}`,

1
dolphinscheduler-ui/src/common/types.ts

@ -20,6 +20,7 @@ export type ITaskState =
| 'SUBMITTED_SUCCESS'
| 'RUNNING_EXECUTION'
| 'PAUSE'
| 'STOP'
| 'FAILURE'
| 'SUCCESS'
| 'NEED_FAULT_TOLERANCE'

Loading…
Cancel
Save