Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Airflow DAG run fails when task is up for retry

Tags:

airflow

In my default args for a DAG I have set the retry and retry_delay parameters. When I monitor the UI, upon a task failure, it briefly changes state to "retry" but immediately following, the DAG state is set to "FAILED" and so the task (that should be up for retry) gets stuck in the queued state. In this situation, shouldn't the dagrun remain in the "running" state since the failed task is up for retry?

I've spent some time searching documentation and code for how the dagrun changes state, but have been unable to get any clarity.

like image 405
harveyxia Avatar asked Dec 12 '25 14:12

harveyxia


1 Answers

This has since been fixed in the upcoming Airflow 1.8 release. Refer to the following JIRA tickets:

  1. Retry not honored
  2. Retry delay not honored
like image 199
harveyxia Avatar answered Dec 16 '25 10:12

harveyxia