Commit f4d9513
authored
Create placeholder instance models (#3821)
* Create placeholder instances
* Add tests
* Update terminating comment
* Fix tests
* Fix job_model.instance not set to placeholder
* Fix placeholders not used for multinode tasks
* Drop optional fleet_model handling
* Fix placeholder cleanup on stale lock
* Drop placeholder cleanup on non-stale path
* Fix sqlite commite after unlock
* Do not elect placeholder instances as masters
* Count placeholders in _run_can_fit_into_fleet
* Update contributing/RUNS-AND-JOBS.md
* Regenerate migration
* Ignore placeholders in get_placement_group_model_for_job
* Rebase migration1 parent 5730688 commit f4d9513
16 files changed
Lines changed: 680 additions & 75 deletions
File tree
- contributing
- src
- dstack/_internal/server
- background/pipeline_tasks
- instances
- migrations/versions/2026
- services
- runs
- testing
- tests/_internal/server
- background/pipeline_tasks
- test_instances
- routers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
935 | 938 | | |
936 | 939 | | |
937 | 940 | | |
938 | | - | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
939 | 944 | | |
| 945 | + | |
| 946 | + | |
940 | 947 | | |
941 | 948 | | |
942 | 949 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
| |||
0 commit comments