Skip to content

Conversation

@github-actions
Copy link

When a SchedulerJob is marked failed, orphaned task instances may be reset
and re-scheduled, incrementing try_number without recording the abandoned
attempt.

This change records the current attempt into task_instance_history
before resetting so users have a complete audit trail of the failure.

related #57618
(cherry picked from commit bca0a63)

Co-authored-by: Ephraim Anierobi splendidzigy24@gmail.com

…59639)

When a SchedulerJob is marked failed, orphaned task instances may be reset
and re-scheduled, incrementing try_number without recording the abandoned
attempt.

This change records the current attempt into task_instance_history
before resetting so users have a complete audit trail of the failure.

related #57618
(cherry picked from commit bca0a63)

Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com>
@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Dec 23, 2025
@potiuk potiuk marked this pull request as ready for review December 26, 2025 00:28
@potiuk potiuk requested review from XD-DENG and ashb as code owners December 26, 2025 00:28
@potiuk potiuk merged commit 23e277e into v3-1-test Dec 26, 2025
5 checks passed
@potiuk potiuk deleted the backport-bca0a63-v3-1-test branch December 26, 2025 00:28
ephraimbuddy added a commit that referenced this pull request Jan 6, 2026
…59639) (#59752)

When a SchedulerJob is marked failed, orphaned task instances may be reset
and re-scheduled, incrementing try_number without recording the abandoned
attempt.

This change records the current attempt into task_instance_history
before resetting so users have a complete audit trail of the failure.

related #57618
(cherry picked from commit bca0a63)

Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com>
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jan 6, 2026
@ephraimbuddy ephraimbuddy added this to the Airflow 3.1.6 milestone Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants