zmodz1010 commented on code in PR #76682:
URL: https://github.com/apache/airflow/pull/76682#discussion_r4643250036
##########
airflow-core/src/airflow/migrations/versions/0158_3_5_0_add_retry_timeout_deadline.py:
##########
Review Comment:
Renumbered the migration to `0158` and set `down_revision` to
`c64b10719069`, the current 0157 on `main`; this is pushed in `e09f4a8895`.
Ruff passed. The focused Python tests and commit hook could not complete on
this Windows environment: Breeze fails on missing `fcntl`, the Task SDK test
path cannot import `airflow._shared.configuration`, and Airflow core mypy
cannot build `pykerberos` without MSVC. I bypassed the failing hook for this
commit; those checks still need CI coverage.
---
Drafted-by: GitHub Copilot App 1.0.106-8.unstable.r43566476370.g869eef3 (no
human review before posting)
##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -1355,14 +1355,20 @@ def _emit_dagrun_span(self, state: DagRunState):
@provide_session
def update_state(
- self, *, session: Session = NEW_SESSION, execute_callbacks: bool = True
+ self,
+ *,
+ session: Session = NEW_SESSION,
+ execute_callbacks: bool = True,
+ retry_timeout_expired_tis: list[TI] | None = None,
Review Comment:
Removed the mutable out-parameter. Expired TIs are now returned in
`TISchedulingDecision` and from `DagRun.update_state` regardless of
`execute_callbacks`; the scheduler dispatches the existing failure
callback/email requests from that result. I also updated the tuple-unpacking
call sites and added coverage for the callback-enabled path.
Ruff passed. The focused Python tests and commit hook could not complete on
this Windows environment (Breeze fails on `fcntl`, and the Task SDK test path
cannot import `airflow._shared.configuration`). I bypassed the failing hook for
this commit; CI still needs to cover these changes.
---
Drafted-by: GitHub Copilot App 1.0.106-8.unstable.r43566476370.g869eef3 (no
human review before posting)
--
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]