|
12 | 12 |
|
13 | 13 | class StateTransition(BaseModel): |
14 | 14 | status: Optional[ |
15 | | - Literal["provisioning", "initializing", "running", "suspending", "suspended", "resuming", "failure", "shutdown"] |
| 15 | + Literal[ |
| 16 | + "scheduled", |
| 17 | + "provisioning", |
| 18 | + "initializing", |
| 19 | + "running", |
| 20 | + "suspending", |
| 21 | + "suspended", |
| 22 | + "resuming", |
| 23 | + "failure", |
| 24 | + "shutdown", |
| 25 | + ] |
16 | 26 | ] = None |
17 | 27 | """The status of the Devbox. |
18 | 28 |
|
19 | | - provisioning: Runloop is allocating and booting the necessary infrastructure |
20 | | - resources. initializing: Runloop defined boot scripts are running to enable the |
21 | | - environment for interaction. running: The Devbox is ready for interaction. |
22 | | - suspending: The Devbox disk is being snapshotted as part of suspension. |
23 | | - suspended: The Devbox disk is saved and no more active compute is being used for |
24 | | - the Devbox. resuming: The Devbox disk is being loaded as part of booting a |
25 | | - suspended Devbox. failure: The Devbox failed as part of booting or running user |
26 | | - requested actions. shutdown: The Devbox was successfully shutdown and no more |
27 | | - active compute is being used. |
| 29 | + scheduled: The Devbox is scheduled to run but infrastructure allocation has not |
| 30 | + started yet. provisioning: Runloop is allocating and booting the necessary |
| 31 | + infrastructure resources. initializing: Runloop defined boot scripts are running |
| 32 | + to enable the environment for interaction. running: The Devbox is ready for |
| 33 | + interaction. suspending: The Devbox disk is being snapshotted as part of |
| 34 | + suspension. suspended: The Devbox disk is saved and no more active compute is |
| 35 | + being used for the Devbox. resuming: The Devbox disk is being loaded as part of |
| 36 | + booting a suspended Devbox. failure: The Devbox failed as part of booting or |
| 37 | + running user requested actions. shutdown: The Devbox was successfully shutdown |
| 38 | + and no more active compute is being used. |
28 | 39 | """ |
29 | 40 |
|
30 | 41 | transition_time_ms: Optional[object] = None |
@@ -78,7 +89,15 @@ class DevboxView(BaseModel): |
78 | 89 | """A list of state transitions in order with durations""" |
79 | 90 |
|
80 | 91 | status: Literal[ |
81 | | - "provisioning", "initializing", "running", "suspending", "suspended", "resuming", "failure", "shutdown" |
| 92 | + "scheduled", |
| 93 | + "provisioning", |
| 94 | + "initializing", |
| 95 | + "running", |
| 96 | + "suspending", |
| 97 | + "suspended", |
| 98 | + "resuming", |
| 99 | + "failure", |
| 100 | + "shutdown", |
82 | 101 | ] |
83 | 102 | """The current status of the Devbox.""" |
84 | 103 |
|
|
0 commit comments