You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jannik Franz (JIRA)" <ji...@apache.org> on 2019/04/01 13:09:00 UTC

[jira] [Created] (AIRFLOW-4216) Sensors not rescheduled when root task with 'reschedule' mode

Jannik Franz created AIRFLOW-4216:
-------------------------------------

             Summary: Sensors not rescheduled when root task with 'reschedule' mode
                 Key: AIRFLOW-4216
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4216
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Jannik Franz


When using Sensors and having them as root tasks (such as no prior dependency task) and using mode 'reschedule' then the DAG state will be set to 'failed' and tasks won't be rescheduled.

This is because the 'update_state' method for the DAG doesn't check for 'up_for_reschedule' in tasks properly:

[https://github.com/apache/airflow/blob/master/airflow/models/__init__.py#L4606]

 

The expected behaviour would be to reschedule the task without failing the DAG.

The workaround currently is adding a DummyOperator (or similiar) before the Sensor.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)