NorskManager.startJob() method

Start a job on a node

Signature:

startJob(jobId: JobId, role: Role, nodeId: NodeId, opts?: StartJobOptions): Promise<void>;

Parameters

Parameter Type Description

jobId

JobId

The job to start

role

Role

The instance key for this instance, such as e.g. "primary" or "backup"

nodeId

NodeId

The node to start the job on

opts

StartJobOptions

(Optional) Job-migration fields, forwarded verbatim to the worker. runtimeRole is the slot the job is told in NORSK_RUNTIME_ROLE (absent means the same as role); deferStart creates every container without starting any (the instance reports prepared and waits for startPreparedJob); migrationId marks the instance as that migration’s target.

Returns:

Promise<void>