Commit 06edc79
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 0f68191 commit 06edc79
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 | |
|---|---|---|---|
| |||
2309 | 2309 | | |
2310 | 2310 | | |
2311 | 2311 | | |
| 2312 | + | |
2312 | 2313 | | |
2313 | 2314 | | |
| 2315 | + | |
2314 | 2316 | | |
2315 | 2317 | | |
2316 | 2318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3386 | 3386 | | |
3387 | 3387 | | |
3388 | 3388 | | |
| 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 | + | |
3389 | 3429 | | |
3390 | 3430 | | |
3391 | 3431 | | |
| |||
0 commit comments