ephraimbuddy commented on code in PR #31412:
URL: https://github.com/apache/airflow/pull/31412#discussion_r1198944511
##########
airflow/sensors/base.py:
##########
@@ -265,7 +265,8 @@ def _get_next_poke_interval(
if not self.exponential_backoff:
return self.poke_interval
- min_backoff = int(self.poke_interval * (2 ** (try_number - 2)))
+ # The value of min_backoff should always be greater than or equal to 1.
+ min_backoff = max(int(self.poke_interval * (2 ** (try_number - 2))), 1)
Review Comment:
I wonder if we can be able to add test for this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]