StartJobOptions interface

Job-migration fields on startJob, forwarded verbatim to the worker. All optional; a plain start passes none of them.

Signature:

export interface StartJobOptions

Properties

Property Type Description

deferStart?

boolean

(Optional) Create every container but start none; the instance reports prepared and waits for startPreparedJob.

migrationId?

string

(Optional) Marks the instance as the target of this migration.

migrationInitialState?

Uint8Array

(Optional) Phase F. The state the migration’s SOURCE handed over, opaque bytes forwarded verbatim to the worker, which delivers them to the job as initial-state right after hello-ack. Only meaningful alongside migrationId.

runtimeRole?

Role

(Optional) The slot the job is told in NORSK_RUNTIME_ROLE ("primary" / "backup"). Absent means the same string as the instance key.