azkaban案例
作业依赖案例
需求:JobA和JobB执行完了,才能执行JobC
nodes:
- name: jobA
type: command
config:
command: echo "AAA"
- name: jobB
type: command
config:
command: echo "BBB"
- name: jobC
type: command
dependsOn:
- jobA
- jobB
config:
command: echo "CCC"
自动失败重试案例
nodes:
- name: JobA
type: command
config:
command: sh /not_exists.sh
retries: 3
retry.backoff: 10000
手动失败重试案例
nodes:
- name: JobA
type: command
config:
command: echo "This is JobA."
- name: JobB
type: command
dependsOn:
- JobA
config:
command: echo "This is JobB."
- name: JobC
type: command
dependsOn:
- JobB
config:
command: echo "This is JobC."
- name: JobD
type: command
dependsOn:
- JobC
config:
command: echo "This is JobD."
- name: JobE
type: command
dependsOn:
- JobD
config:
command: echo "This is JobE."
- name: JobF
type: command
dependsOn:
- JobE
config:
command: echo "This is JobF."
方法一:



方法二:



本文来自博客园,作者:jsqup,转载请注明原文链接:https://www.cnblogs.com/jsqup/p/16506161.html

浙公网安备 33010602011771号