You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Sam Lendle (Jira)" <ji...@apache.org> on 2019/11/05 04:04:00 UTC
[jira] [Created] (AIRFLOW-5849) execution_timeout is not respected
by sensors with mode='reschedule'
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)