Skip to content

Conversation

@github-actions
Copy link

When a deferred task resumed and failed in its completion callback,
retries would incorrectly re-execute the callback instead of restarting
from the beginning. This caused retry attempts to fail repeatedly at the
same step rather than attempting the full task execution from scratch.

The fix ensures next_method and next_kwargs fields are properly cleared
when tasks transition to retry, failed, or success states, preventing
stale deferral parameters from persisting across task attempts.

Fixes #56704
(cherry picked from commit 16e9b35)

Co-authored-by: Kaxil Naik kaxilnaik@gmail.com

…ate (#56731)

When a deferred task resumed and failed in its completion callback,
retries would incorrectly re-execute the callback instead of restarting
from the beginning. This caused retry attempts to fail repeatedly at the
same step rather than attempting the full task execution from scratch.

The fix ensures next_method and next_kwargs fields are properly cleared
when tasks transition to retry, failed, or success states, preventing
stale deferral parameters from persisting across task attempts.

Fixes #56704
(cherry picked from commit 16e9b35)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Oct 16, 2025
@kaxil kaxil marked this pull request as ready for review October 16, 2025 17:22
@kaxil kaxil merged commit 53c05a0 into v3-1-test Oct 16, 2025
78 checks passed
@kaxil kaxil deleted the backport-16e9b35-v3-1-test branch October 16, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant