0BVer commented on code in PR #56866:
URL: https://github.com/apache/airflow/pull/56866#discussion_r2496938817
##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -954,14 +954,15 @@ def next_retry_datetime(self):
from airflow.sdk.definitions._internal.abstractoperator import
MAX_RETRY_DELAY
delay = self.task.retry_delay
- if self.task.retry_exponential_backoff:
+ multiplier = self.task.retry_exponential_backoff if
self.task.retry_exponential_backoff != 0 else 1.0
+ if multiplier != 1.0:
Review Comment:
```suggestion
if multiplier != 1.0 and multiplier > 0:
```
To prevent critical failures, input validation or defensive checks should be
implemented to ensure the exponential backoff multiplier is always greater than
0.
--
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]