Commit c497cda
committed
fix(scheduler): set end_date on tasks skipped by dagrun timeout
When a DAG run times out via dagrun_timeout, unfinished tasks are
marked as SKIPPED but end_date was not set. This caused task duration
to keep increasing in the UI even though the task was already skipped.
Set end_date to the current time when marking tasks as SKIPPED during
DAG run timeout handling.
Closes: #585361 parent 26a700f commit c497cda
File tree
2 files changed
+42
-0
lines changed- airflow-core
- src/airflow/jobs
- tests/unit/jobs
2 files changed
+42
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2328 | 2328 | | |
2329 | 2329 | | |
2330 | 2330 | | |
| 2331 | + | |
2331 | 2332 | | |
2332 | 2333 | | |
| 2334 | + | |
2333 | 2335 | | |
2334 | 2336 | | |
2335 | 2337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3387 | 3387 | | |
3388 | 3388 | | |
3389 | 3389 | | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
3390 | 3430 | | |
3391 | 3431 | | |
3392 | 3432 | | |
| |||
0 commit comments