You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
suspend_commands run through the suspend path before the Devbox suspends; see launch_commands for work on every startup.
16
+
"""
17
+
18
+
suspend_commands: Optional[List[str]] =None
19
+
"""Commands to run through the suspend path before the Devbox suspends (e.g.
20
+
21
+
cleanup, quiesce daemons).
22
+
"""
23
+
24
+
suspend_deadline_ms: Optional[int] =None
25
+
"""Deadline in milliseconds for broker drain and suspend_commands during suspend.
26
+
27
+
Defaults to 30000 ms and may not exceed 60000 ms. If exceeded, suspend work is
28
+
abandoned, the timeout is logged, and the Devbox still proceeds to suspend by
29
+
shutting down vmagent and killing the VM.
30
+
"""
10
31
11
32
12
33
classLifecycleResumeTriggers(BaseModel):
@@ -22,7 +43,7 @@ class LifecycleResumeTriggers(BaseModel):
22
43
classLifecycle(BaseModel):
23
44
"""Lifecycle configuration for idle and resume behavior.
24
45
25
-
Configure idle policy via lifecycle.after_idle (if both this and the top-level after_idle are set, they must match) and resume triggers via lifecycle.resume_triggers.
46
+
Configure idle policy via lifecycle.after_idle (if both this and the top-level after_idle are set, they must match), resume triggers via lifecycle.resume_triggers, and optional lifecycle hooks via lifecycle.lifecycle_hooks.
@@ -24,7 +45,7 @@ class LifecycleResumeTriggers(TypedDict, total=False):
24
45
classLifecycle(TypedDict, total=False):
25
46
"""Lifecycle configuration for idle and resume behavior.
26
47
27
-
Configure idle policy via lifecycle.after_idle (if both this and the top-level after_idle are set, they must match) and resume triggers via lifecycle.resume_triggers.
48
+
Configure idle policy via lifecycle.after_idle (if both this and the top-level after_idle are set, they must match), resume triggers via lifecycle.resume_triggers, and optional lifecycle hooks via lifecycle.lifecycle_hooks.
28
49
"""
29
50
30
51
after_idle: Optional[AfterIdle]
@@ -34,6 +55,13 @@ class Lifecycle(TypedDict, total=False):
0 commit comments