Browse Source

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

3.1.0-release
xuhhui 2 years ago committed by GitHub
parent
commit
198e00db58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-delay-time.ts
  2. 6
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-failed.ts
  3. 3
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts
  4. 6
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts
  5. 3
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-sqoop.ts

3
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-delay-time.ts

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

6
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-failed.ts

@ -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')
}

3
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-flink.ts

@ -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
},

6
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts

@ -27,6 +27,9 @@ export function useK8s(model: { [field: string]: any }): IJsonItem[] {
type: 'input-number',
field: 'minCpuCores',
span: 12,
props: {
min: 0
},
name: t('project.node.min_cpu'),
slots: {
suffix: () => t('project.node.cores')
@ -36,6 +39,9 @@ export function useK8s(model: { [field: string]: any }): IJsonItem[] {
type: 'input-number',
field: 'minMemorySpace',
span: 12,
props: {
min: 0
},
name: t('project.node.min_memory'),
slots: {
suffix: () => t('project.node.mb')

3
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-sqoop.ts

@ -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
}
},
{

Loading…
Cancel
Save