Iskra API Reference
    Preparing search index...

    Interface ProcessConfig

    interface ProcessConfig {
        args?: string[];
        command: string;
        env?: Record<string, string>;
        inheritEnv?: boolean | string[];
        maxPendingStdinBytes?: number;
        maxRestarts?: number;
        mode?: "daemon" | "oneshot" | "stdio";
        restartBackoff?: RestartBackoffConfig;
        restartCooldown?: number;
        restartOnCrash?: boolean;
    }
    Index
    args?: string[]
    command: string
    env?: Record<string, string>

    Variables set for the child, over the ones it inherits (see inheritEnv).

    inheritEnv?: boolean | string[]

    Which of the app's environment variables the child inherits. Default false: a minimal set without secrets (PATH, HOME, locale, TZ, temp dir, NODE_ENV…). A list adds those names to it; true passes them all (DATABASE_URL, AUTH_SECRET, cloud keys…).

    maxPendingStdinBytes?: number

    stdio mode: bytes send() lets wait for a child that is not reading its stdin; past this it refuses messages (returns false). Default 8 MiB.

    maxRestarts?: number
    mode?: "daemon" | "oneshot" | "stdio"
    restartBackoff?: RestartBackoffConfig

    Exponential backoff settings for restarts. Defaults to 1000 ms flat (no backoff).

    restartCooldown?: number
    restartOnCrash?: boolean