Skip to content

Conversation

@ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Dec 19, 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

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.
@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Dec 19, 2025
@wolvery
Copy link
Contributor

wolvery commented Dec 19, 2025

Hey, I have an issue that might be closed by this:
#58562
Thank you!

@ephraimbuddy
Copy link
Contributor Author

Hey, I have an issue that might be closed by this: #58562 Thank you!

Yeah, the log is consistent with what I got too

@kaxil kaxil added this to the Airflow 3.1.6 milestone Dec 23, 2025
@kaxil kaxil added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Dec 23, 2025
@kaxil kaxil merged commit bca0a63 into apache:main Dec 23, 2025
70 checks passed
@kaxil kaxil deleted the record-ti-reset-in-history branch December 23, 2025 14:00
github-actions bot pushed a commit that referenced this pull request Dec 23, 2025
…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>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

@bohdan-pd
Copy link

@ephraimbuddy Would it be possible to backport it into 3.0.6?

@potiuk
Copy link
Member

potiuk commented Dec 26, 2025

@ephraimbuddy Would it be possible to backport it into 3.0.6?

No. We do not backport fixes to previous minor branch - only to last minor release.
You can either:

  • upgrade to latest version (3.1.6) when released
  • backport it yourself to your version

This is an open-source software that is released following ASF Apache Way and often by volunteers. And we haveo clear backport rules (best effort - only to latest minor version). Asking people to do more than that is asking them to do more of their volunteer time - when they are already providing you with viable options described above. If you cannot upgrade to latest relase done by the community, it's on you to take all the burden of backporting it to the version you want to stay on. This is open-source software and you are free to modify the software as you wish.

potiuk pushed a commit that referenced this pull request Dec 26, 2025
…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>
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Jan 2, 2026
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 apache#57618
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>
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
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 apache#57618
anrajago

This comment was marked as outdated.

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 backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants