Repository navigation
Commit 3b9a97b
committed
Fix clearing with upstream and downstream selecting unrelated tasks
Clearing a task in a specific Dag run with both upstream and downstream
enabled resolved the downstream relatives from the selected tasks plus
their upstream tasks, so every other descendant of those upstream tasks
was selected too. In a Dag whose branches share a root task this
cleared the whole run, and selecting one map index of a mapped task
cleared all of its map indexes.
Each direction has to be resolved from the requested tasks alone, as
clearing without a specific Dag run already does.1 parent fe58952 commit 3b9a97b
2 files changed
Lines changed: 51 additions & 7 deletions
File tree
- airflow-core
- src/airflow/api_fastapi/core_api/routes/public
- tests/unit/api_fastapi/core_api/routes/public
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1094 | 1096 | | |
1095 | 1097 | | |
1096 | | - | |
| 1098 | + | |
1097 | 1099 | | |
1098 | 1100 | | |
1099 | 1101 | | |
1100 | 1102 | | |
1101 | 1103 | | |
1102 | 1104 | | |
1103 | 1105 | | |
1104 | | - | |
1105 | | - | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1122 | 1125 | | |
1123 | | - | |
| 1126 | + | |
1124 | 1127 | | |
1125 | | - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1126 | 1131 | | |
1127 | 1132 | | |
1128 | 1133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5443 | 5443 | | |
5444 | 5444 | | |
5445 | 5445 | | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
| 5449 | + | |
| 5450 | + | |
| 5451 | + | |
| 5452 | + | |
| 5453 | + | |
| 5454 | + | |
| 5455 | + | |
| 5456 | + | |
| 5457 | + | |
| 5458 | + | |
| 5459 | + | |
| 5460 | + | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
| 5480 | + | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
5446 | 5485 | | |
5447 | 5486 | | |
5448 | 5487 | | |
| |||
0 commit comments