Commit a1d9703
authored
Implement run pipeline (#3686)
* Add RunModel pipeline columns
* Add RunPipeline scaffolding
* Add run pipeline terminating worker
* Implement pending path for non-services
* Implement active path for non-services
* Fix stale run.jobs view
* Document Locking related resources before refetch
* Fix stale fleet.instances view
* Early return on fleet termination
* Implement pending path for services
* Implement active services scaling
* Implement active services rolling deployment
* Clarify scaling and rolling deploy conflict
* Wire
* Hint run fetch
* Add ix_runs_pipeline_fetch_q index
* Cleanup
* Fix _load_active_context extra return param
* Fix double unlock
* Fix unfinished jobs in retry replica
* Add tests
* Respect parent pipeline priority
* Fix unions syntax
* Decrease fleets min_processing_interval
* Process legacy instances without fleets
* Fix tests1 parent 3b51bfa commit a1d9703
28 files changed
Lines changed: 4404 additions & 59 deletions
File tree
- contributing
- src
- dstack/_internal/server
- background
- pipeline_tasks
- instances
- runs
- scheduled_tasks
- migrations/versions/2026
- services
- gateways
- jobs
- runs
- testing
- tests/_internal/server/background/pipeline_tasks
- test_runs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
Lines changed: 67 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 202 | + | |
207 | 203 | | |
208 | 204 | | |
209 | 205 | | |
210 | 206 | | |
211 | 207 | | |
212 | 208 | | |
213 | | - | |
214 | | - | |
215 | 209 | | |
216 | 210 | | |
217 | 211 | | |
| |||
260 | 254 | | |
261 | 255 | | |
262 | 256 | | |
263 | | - | |
| 257 | + | |
264 | 258 | | |
265 | 259 | | |
266 | 260 | | |
267 | 261 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 284 | + | |
287 | 285 | | |
288 | 286 | | |
289 | 287 | | |
290 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
291 | 315 | | |
292 | 316 | | |
293 | 317 | | |
| |||
308 | 332 | | |
309 | 333 | | |
310 | 334 | | |
| 335 | + | |
311 | 336 | | |
312 | 337 | | |
313 | 338 | | |
| |||
326 | 351 | | |
327 | 352 | | |
328 | 353 | | |
329 | | - | |
| 354 | + | |
330 | 355 | | |
331 | 356 | | |
332 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
333 | 365 | | |
334 | 366 | | |
335 | 367 | | |
| |||
347 | 379 | | |
348 | 380 | | |
349 | 381 | | |
| 382 | + | |
350 | 383 | | |
351 | 384 | | |
352 | 385 | | |
| |||
389 | 422 | | |
390 | 423 | | |
391 | 424 | | |
392 | | - | |
| 425 | + | |
393 | 426 | | |
394 | 427 | | |
395 | 428 | | |
| |||
461 | 494 | | |
462 | 495 | | |
463 | 496 | | |
464 | | - | |
465 | | - | |
466 | 497 | | |
467 | 498 | | |
468 | | - | |
| 499 | + | |
469 | 500 | | |
470 | 501 | | |
471 | 502 | | |
472 | 503 | | |
473 | | - | |
| 504 | + | |
474 | 505 | | |
475 | 506 | | |
476 | 507 | | |
477 | 508 | | |
478 | 509 | | |
| 510 | + | |
479 | 511 | | |
480 | 512 | | |
481 | | - | |
| 513 | + | |
482 | 514 | | |
483 | 515 | | |
484 | 516 | | |
485 | 517 | | |
486 | 518 | | |
487 | | - | |
| 519 | + | |
488 | 520 | | |
489 | 521 | | |
490 | 522 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
| |||
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
| 585 | + | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| |||
0 commit comments