fix: Current node settings number of failed retries may not be negative (#10530)

(cherry picked from commit 198e00db58)
This commit is contained in:
xuhhui 2022-06-22 18:22:33 +08:00 committed by Jiajie Zhong
parent 7104063e0d
commit 9740a6e42f
4 changed files with 13 additions and 2 deletions

View File

@ -25,6 +25,9 @@ export function useDelayTime(model: { [field: string]: any }): IJsonItem {
field: 'delayTime',
name: t('project.node.delay_execution_time'),
span: 12,
props: {
min: 0
},
slots: {
suffix: () => t('project.node.minute')
},

View File

@ -26,6 +26,9 @@ export function useFailed(): IJsonItem[] {
field: 'failRetryTimes',
name: t('project.node.number_of_failed_retries'),
span: 12,
props: {
min: 0
},
slots: {
suffix: () => t('project.node.times')
}
@ -35,6 +38,9 @@ export function useFailed(): IJsonItem[] {
field: 'failRetryInterval',
name: t('project.node.failed_retry_interval'),
span: 12,
props: {
min: 0
},
slots: {
suffix: () => t('project.node.minute')
}

View File

@ -191,7 +191,8 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
name: t('project.node.task_manager_number'),
span: taskManagerNumberSpan,
props: {
placeholder: t('project.node.task_manager_number_tips')
placeholder: t('project.node.task_manager_number_tips'),
min: 1
},
value: model.taskManager
},

View File

@ -77,7 +77,8 @@ export function useSqoop(model: { [field: string]: any }): IJsonItem[] {
name: t('project.node.concurrency'),
span: unCustomSpan,
props: {
placeholder: t('project.node.concurrency_tips')
placeholder: t('project.node.concurrency_tips'),
min: 1
}
},
{