Sam Lendle created AIRFLOW-5849:
-----------------------------------
Summary: execution_timeout is not respected by sensors with
mode='reschedule'
Key: AIRFLOW-5849
URL: https://issues.apache.org/jira/browse/AIRFLOW-5849
Project: Apache Airflow
Issue Type: Bug
Components: core
Affects Versions: 1.10.6
Reporter: Sam Lendle
In BaseSensorOperator's execute method, when mode is 'reschedule', an exception
is thrown
([https://github.com/apache/airflow/blob/a296cdabdb9c9c65cf9a48329cb776aed5c82d43/airflow/sensors/base_sensor_operator.py#L119-L122)]
Unless the poke method is really slow (which is atypical) a reasonable
execution_timeout will never be reached
[here|https://github.com/apache/airflow/blob/master/airflow/models/taskinstance.py#L925-L927]
because that exception will be thrown early, and the task will be rescheduled.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)