Skip to content

Commit 3dd007c

Browse files
authored
[Fix][UI] Add the task status of pending. (#10129)
1 parent bf4b8ff commit 3dd007c

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

dolphinscheduler-ui/src/common/common.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ import {
3131
StopOutlined,
3232
GlobalOutlined,
3333
IssuesCloseOutlined,
34-
SendOutlined
34+
SendOutlined,
35+
HistoryOutlined
3536
} from '@vicons/antd'
3637
import { format, parseISO } from 'date-fns'
3738
import _ from 'lodash'
@@ -275,6 +276,14 @@ export const tasksState = (t: any): ITaskStateConfig => ({
275276
icon: SendOutlined,
276277
isSpin: false,
277278
classNames: 'dispatch'
279+
},
280+
PENDING: {
281+
id: 18,
282+
desc: `${t('project.workflow.pending')}`,
283+
color: '#5101be',
284+
icon: HistoryOutlined,
285+
isSpin: false,
286+
classNames: 'pending'
278287
}
279288
})
280289

dolphinscheduler-ui/src/common/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export type ITaskState =
3333
| 'FORCED_SUCCESS'
3434
| 'SERIAL_WAIT'
3535
| 'DISPATCH'
36+
| 'PENDING'
3637

3738
export type ITaskStateConfig = {
3839
[key in ITaskState]: {

dolphinscheduler-ui/src/locales/modules/en_US.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ const project = {
498498
forced_success: 'Forced success',
499499
serial_wait: 'Serial wait',
500500
dispatch: 'Dispatch',
501+
pending: 'Pending',
501502
executing: 'Executing',
502503
startup_type: 'Startup Type',
503504
complement_range: 'Complement Range',

dolphinscheduler-ui/src/locales/modules/zh_CN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ const project = {
495495
forced_success: '强制成功',
496496
serial_wait: '串行等待',
497497
dispatch: '派发',
498+
pending: '挂起',
498499
executing: '正在执行',
499500
startup_type: '启动类型',
500501
complement_range: '补数范围',

0 commit comments

Comments
 (0)