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."

方法一:

方法二:

posted @ 2022-07-22 16:16  jsqup  阅读(17)  评论(0编辑  收藏  举报