Skip to content

HotReloadOptions

Signature

export interface HotReloadOptions extends WorkerHotReloadRequestOptions

Properties

1

Methods

1

Properties

resumeSession?: boolean;

Experimental manager-only handoff for native workers with one shard and WorkerAdapter. The replacement still uses an Identify to start up. The original stream pauses while work drains and resumes from the last received sequence, subject to Discord accepting the session and replay. The replacement must finish its readiness handlers within `readyTimeout` before taking over. Outbound Gateway requests to the paused worker may time out. If activation is uncertain, rollback can replay events that the replacement already dispatched.

Methods