Skip to content

WorkerHotReloadRequestOptions

Hot reload options that can cross the worker channel; see `WorkerManager.hotReload`.

Signature

export interface WorkerHotReloadRequestOptions

Properties

workerIds?: readonly number[];

Workers to reload, one after another. Defaults to every worker in id order.

readyTimeout?: number;

How long a replacement may take until all its shards are ready. Defaults to 60s plus the time the connect queue needs for the worker's shards (5.5s per `max_concurrency` shards).

drainTimeout?: number;

How long a replaced worker may keep finishing in-flight work before its sessions close.

@default10000
continueOnError?: boolean;

Keep reloading the remaining workers after one fails.

@defaultfalse