uranusjr commented on code in PR #61461:
URL: https://github.com/apache/airflow/pull/61461#discussion_r2791545765
##########
airflow-core/src/airflow/serialization/definitions/deadline.py:
##########
@@ -226,7 +224,7 @@ def _evaluate_with(self, *, session: Session, **kwargs:
Any) -> datetime | None:
return None
avg_duration_seconds = sum(durations) / len(durations)
- return timezone.utcnow() + timedelta(seconds=avg_duration_seconds)
+ return timezone.utcnow() +
timedelta(seconds=float(avg_duration_seconds))
Review Comment:
Why is this cast needed?
--
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]