Commit bca0a63
authored
Fix missing TaskInstanceHistory on scheduler TI resets (#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 #576181 parent 5945bd5 commit bca0a63
File tree
2 files changed
+28
-0
lines changed- airflow-core
- src/airflow/jobs
- tests/unit/jobs
2 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2604 | 2604 | | |
2605 | 2605 | | |
2606 | 2606 | | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
2607 | 2613 | | |
2608 | 2614 | | |
| 2615 | + | |
| 2616 | + | |
2609 | 2617 | | |
2610 | 2618 | | |
2611 | 2619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4138 | 4138 | | |
4139 | 4139 | | |
4140 | 4140 | | |
| 4141 | + | |
| 4142 | + | |
4141 | 4143 | | |
4142 | 4144 | | |
4143 | 4145 | | |
| |||
4152 | 4154 | | |
4153 | 4155 | | |
4154 | 4156 | | |
| 4157 | + | |
| 4158 | + | |
4155 | 4159 | | |
4156 | 4160 | | |
4157 | 4161 | | |
4158 | 4162 | | |
4159 | 4163 | | |
4160 | 4164 | | |
4161 | 4165 | | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
4162 | 4182 | | |
4163 | 4183 | | |
4164 | 4184 | | |
| |||
0 commit comments