jedcunningham commented on code in PR #28172:
URL: https://github.com/apache/airflow/pull/28172#discussion_r1042441984


##########
airflow/models/taskinstance.py:
##########
@@ -1144,7 +1144,10 @@ def next_retry_datetime(self):
             delay = timedelta(seconds=delay_backoff_in_seconds)
             if self.task.max_retry_delay:
                 delay = min(self.task.max_retry_delay, delay)
-        return self.end_date + delay
+        try:
+            return self.end_date + delay
+        except OverflowError:
+            return pendulum.DateTime.max

Review Comment:
   @RNHTTR, unfortunately we can't just start raising parsing errors before a 
major release (which is why I said that ship has sailed).
   
   That's also the beauty of my `default_max_retry_delay` instance wide config 
option. We can "cap" it with a warning, and give operators a way to configure 
that cap for their own use cases, while not requiring any DAG code level 
changes.



-- 
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]

Reply via email to