Skip to content

Commit

Permalink
Fix When the task instance status is 'STOP' (apache#14967)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored and xdu-chenrj committed Oct 30, 2023
1 parent 9aeca74 commit 6f4f46c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dolphinscheduler-ui/src/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`,
Expand Down
1 change: 1 addition & 0 deletions dolphinscheduler-ui/src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type ITaskState =
| 'SUBMITTED_SUCCESS'
| 'RUNNING_EXECUTION'
| 'PAUSE'
| 'STOP'
| 'FAILURE'
| 'SUCCESS'
| 'NEED_FAULT_TOLERANCE'
Expand Down

0 comments on commit 6f4f46c

Please sign in to comment.