You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ExternalTaskSensor uses execution_timeout instead of timeout in defered mode #62516
When using ExternalTaskSensor in reschedule mode, we need to use timeout field as explained in BaseSensorOperator
:param timeout: Time elapsed before the task times out and fails.
Can be timedelta or float seconds.
This should not be confused with execution_timeout of the BaseOperator class. timeout measures the time elapsed between the
first poke and the current time (taking into account any
reschedule delay between each poke), while execution_timeout
checks the running time of the task (leaving out any reschedule
delay). In case that the mode is poke (see below), both of
them are equivalent (as the sensor is never rescheduled), which is not
the case in reschedule mode.
Given the docs section above, seems like all sensors should use timeout instead of execution_timeout to have a predictable behaviour in all modes.
But, when we set the sensor in deferrable mode, it passes execution_timeout to the base class defer implementation. This creates an undocumented difference in behaviour between poke and reschedule mode against the deferred mode.
What you think should happen instead
ExternalTaskSensor should use timeout first and fallback to execution_timeout for deferred execution timeouts.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Activity
boring-cyborg commentedon Feb 26, 2026
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Fix ExternalTaskSensor to use timeout parameter in deferrable mode (a…
y-sudharshan commentedon Mar 2, 2026
@iveselin-glooko, Please review #62556 and let me know if any changes are required
Fix ExternalTaskSensor to use timeout parameter in deferrable mode (#… (
Fix ExternalTaskSensor to use timeout parameter in deferrable mode (#… (
Fix ExternalTaskSensor to use timeout parameter in deferrable mode (#… (