seanghaeli commented on issue #76735: URL: https://github.com/apache/airflow/issues/76735#issuecomment-7059357846
Agreed on at-least-once. For a deadline callback, missing the notification is the bug and a duplicate is noise, so the worker shouldn't wait on the start acknowledgement before running. Agreed too that something has to own the timeout and that the attempt goes in the same statement as the state change. The shape I'd go with: - every run gets an `attempt_id`, written with QUEUED → RUNNING in the exchange and carried in the token, and transitions compare on state and `attempt_id` together - the worker reports start without waiting for the acknowledgement - the scheduler re-dispatches a RUNNING callback with no start report after a timeout, with a new attempt and token, up to a cap, then marks it failed - the per-attempt nonce stays a possible follow-up for faster recovery from a lost response This also covers the lost-response and proxy 502/503 cases @amoghrajesh raised on #76571: the callback is re-dispatched instead of failing. The nonce would make those recover right away instead of after the timeout, so it's welcome in the same PR. I'll update the issue body to this. If someone wants to pick it up, go ahead. It needs a new Execution API version. -- 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]
