@runloop/api-client - v1.22.0
    Preparing search index...

    Interface LifecycleHooks

    Lifecycle hooks for Devbox suspend. suspend_commands run sequentially as the configured Devbox user before the Devbox suspends; failures are logged but do not block suspending. The suspend_deadline_ms budget defaults to 30000 ms, may not exceed 60000 ms, and covers broker drain plus suspend_commands. If the deadline is exceeded, suspend work is abandoned, the timeout is logged, and the Devbox still proceeds to suspend. launch_commands still run on every startup, including after resume.

    interface LifecycleHooks {
        suspend_commands?: string[] | null;
        suspend_deadline_ms?: number | null;
    }
    Index

    Properties

    suspend_commands?: string[] | null

    Commands to run through the suspend path before the Devbox suspends (e.g. cleanup, quiesce daemons).

    suspend_deadline_ms?: number | null

    Deadline in milliseconds for broker drain and suspend_commands during suspend. Defaults to 30000 ms and may not exceed 60000 ms. If exceeded, suspend work is abandoned, the timeout is logged, and the Devbox still proceeds to suspend by shutting down vmagent and killing the VM.