ZeroDivisionError in BaseSensorOperator with exponential_backoff=True
and poke_interval=1
#31409
Closed
2 tasks done
Labels
area:core-operators
Operators, Sensors and hooks within Core Airflow
kind:bug
This is a clearly a bug
Apache Airflow version
2.6.1
What happened
Sensor is fired with an exception ZeroDivisionError, if set up
mode="reschedule"
,exponential_backoff=True
andpoke_interval=1
What you think should happen instead
Throw an human-readable exception about corner values for
poke_interval
or allow to set up this value less then 2 (if it's>=
2 - rescheduling works fine.)How to reproduce
Operating System
Debian GNU/Linux 10 (buster)
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: