Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[v3-1-test] Fix missing TaskInstanceHistory on scheduler TI resets (#59639)#59752

Merged
potiuk merged 1 commit intov3-1-testfrom
backport-bca0a63-v3-1-test
Dec 26, 2025
Merged

[v3-1-test] Fix missing TaskInstanceHistory on scheduler TI resets (#59639)#59752
potiuk merged 1 commit intov3-1-testfrom
backport-bca0a63-v3-1-test

Conversation

Copy link

github-actions bot commented Dec 23, 2025

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
github-actions bot mentioned this pull request Dec 23, 2025
boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Dec 23, 2025
potiuk marked this pull request as ready for review December 26, 2025 00:28
potiuk requested review from XD-DENG and ashb as code owners December 26, 2025 00:28
potiuk merged commit 23e277e into v3-1-test Dec 26, 2025
5 checks passed
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
ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jan 6, 2026
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

Reviewers

ashb Awaiting requested review from ashb ashb is a code owner

XD-DENG Awaiting requested review from XD-DENG XD-DENG is a code owner

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

Airflow 3.1.6

Development

Successfully merging this pull request may close these issues.

2 participants