Commit 129e214
authored
Do not wait in
Previously, `VerdaCompute.create_instance` would
block for up to 3 minutes while the SDK was
waiting for the instance to leave the `ORDERED`
status. This could hurt performance (the database
connection is blocked while waiting) and
reliability (server restarts or exceptions during
the wait cause the instance to be orphaned).
Use the newly introduced Verda SDK option to avoid
the wait in `create_instance()`, so that it is
performed by subsequent
`update_provisioning_data()` calls instead.VerdaCompute.create_instance (#3723)1 parent c0c011c commit 129e214
File tree
2 files changed
+3
-2
lines changed- src/dstack/_internal/core/backends/verda
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| |||
0 commit comments