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

    Interface LifecycleConfiguration

    Lifecycle configuration for Devbox idle and resume behavior. Configure idle policy via after_idle, resume triggers via resume_triggers, and optional lifecycle hooks via lifecycle_hooks.

    interface LifecycleConfiguration {
        after_idle?: AfterIdle | null;
        lifecycle_hooks?: LifecycleHooks | null;
        resume_triggers?: ResumeTriggers | null;
    }
    Index

    Properties

    after_idle?: AfterIdle | null

    Configure Devbox lifecycle based on idle activity. If both this and the top-level after_idle are set, they must have the same value. Prefer this field for new integrations.

    lifecycle_hooks?: LifecycleHooks | null

    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.

    resume_triggers?: ResumeTriggers | null

    Triggers that can resume a suspended Devbox.