vatsrahul1001 opened a new pull request, #71163:
URL: https://github.com/apache/airflow/pull/71163

   Backport of #69821 to `v3-3-test` for the 3.3.1 patch release.
   
   A deferrable task whose trigger ends it with a `TaskFailedEvent` was routed 
straight to `FAILED`, ignoring remaining retries. This computes retry 
eligibility (loading the serialized task, same as the normal task path) and 
sends the callback as `UP_FOR_RETRY` when the task is still eligible, archiving 
the finished try to `task_instance_history` so prior-try log lookups keep 
working.
   
   Cherry-picked with `-x` from `dd1f84ab2034a14164e4d09310fba8fe1fa0395e`. 
Conflict resolution: the `dag_version`/`version_data` context around the 
callback (and its dedicated test) is a main-only feature that does not exist on 
`v3-3-test` — `TaskCallbackRequest` here has no `version_data` field — so that 
part was dropped, keeping only the retry fix 
(`task_callback_type=callback_type`) and reading `bundle_name`/`bundle_version` 
the `v3-3-test` way. The full `test_trigger.py` suite (38 tests) passes.
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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