zmodz1010 commented on PR #76682:
URL: https://github.com/apache/airflow/pull/76682#issuecomment-7041254878

   Thanks for raising the design concern. `RetryDecision.reschedule_timeout` 
bounds repeated reschedules within a single try; `retry_timeout` bounds the 
time from the first failure across retry attempts, including time spent idle in 
`UP_FOR_RETRY`. `RetryPolicy` and `TIRunContext.should_retry` are evaluated 
around a task attempt, so they cannot expire a retry that is waiting past its 
deadline without another attempt. The scheduler therefore needs to expire the 
persisted deadline while the TI is idle; it then sends failure callback/email 
requests through the existing callback path without running task code.
   
   The expired TIs now flow through `TISchedulingDecision` rather than a 
mutable out-parameter, and the migration follows the current mainline revision. 
Ruff passed, but Python tests and the 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; these checks remain for CI.
   
   ---
   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]

Reply via email to