Commit fe92cfd
authored
API: Add bulk update to mark Dag runs as success/failed (#67948)
* API: Add bulk update to mark Dag runs as success/failed
* Address review: factor out dag-run patch helpers and align bulk update with task-instance service
* Adjusments on action_on_existence behavior
* Make cross-module patch_dag_run helpers public (drop leading underscore)
patch_dag_run_state / patch_dag_run_note are imported by the route module, so
the leading underscore was misleading. Also rename the bulk-delete `keys` set
to `to_delete_keys` to mirror the bulk-update handler.1 parent 837bfde commit fe92cfd
10 files changed
Lines changed: 454 additions & 215 deletions
File tree
- airflow-core
- src/airflow
- api_fastapi/core_api
- datamodels
- openapi
- routes/public
- services/public
- ui/openapi-gen
- queries
- requests
- tests/unit/api_fastapi/core_api/routes/public
- airflow-ctl/src/airflowctl/api/datamodels
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2153 | 2153 | | |
2154 | 2154 | | |
2155 | 2155 | | |
2156 | | - | |
| 2156 | + | |
2157 | 2157 | | |
2158 | 2158 | | |
2159 | 2159 | | |
| |||
12122 | 12122 | | |
12123 | 12123 | | |
12124 | 12124 | | |
| 12125 | + | |
| 12126 | + | |
| 12127 | + | |
| 12128 | + | |
| 12129 | + | |
| 12130 | + | |
| 12131 | + | |
| 12132 | + | |
| 12133 | + | |
| 12134 | + | |
12125 | 12135 | | |
12126 | 12136 | | |
12127 | 12137 | | |
12128 | 12138 | | |
12129 | 12139 | | |
12130 | | - | |
| 12140 | + | |
12131 | 12141 | | |
12132 | 12142 | | |
12133 | 12143 | | |
| |||
Lines changed: 12 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| |||
106 | 100 | | |
107 | 101 | | |
108 | 102 | | |
| 103 | + | |
| 104 | + | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
113 | | - | |
114 | 109 | | |
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
118 | 113 | | |
119 | 114 | | |
120 | | - | |
121 | | - | |
122 | 115 | | |
123 | 116 | | |
124 | 117 | | |
| |||
227 | 220 | | |
228 | 221 | | |
229 | 222 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 223 | + | |
| 224 | + | |
250 | 225 | | |
251 | 226 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
| 227 | + | |
| 228 | + | |
257 | 229 | | |
258 | 230 | | |
259 | 231 | | |
| |||
270 | 242 | | |
271 | 243 | | |
272 | 244 | | |
| 245 | + | |
| 246 | + | |
273 | 247 | | |
274 | | - | |
275 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
276 | 252 | | |
277 | 253 | | |
278 | 254 | | |
| |||
0 commit comments