气流DAG已触发但机器人正在运行任务

时间:2019-09-23 10:26:20

标签: airflow directed-acyclic-graphs

在使用Airflow DAG时,我面临一个奇怪的情况。我使用的是Airflow容器,并创建了DAG,可按照以下三个步骤将Atlassian工件自动备份到S3存储桶:

  1. Create a directory structure if it does not exist
  2. Run the Atlassian artifact backup script.
  3. Move the backed-up artifacts to S3 and delete the files locally.

我遇到的奇怪行为是,当我手动触发DAG时,一切正常。但是,调度的DAG每天都能正确触发,但是单个任务永远不会执行。第一个任务Create a directory structure if it does not exist显示了依赖的原因Dagrun Running

Task instance's dagrun was not in the 'running' state but in the state 'success'.

以下任务给出了依赖项Trigger Rule语句的以下原因:

Task's trigger rule 'all_success' requires all upstream tasks to have succeeded, but found 1 non-success(es). upstream_tasks_state={'total': 1, 'successes': 0, 'skipped': 0, 'failed': 0, 'upstream_failed': 0, 'done': 0}, upstream_task_ids={'create_directory'}

0 个答案:

没有答案