NorskManager.stopJob() method

Stop a job running on a node

Signature:

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

Parameters

Parameter Type Description

jobId

JobId

The job to stop

role

Role

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

nodeId

NodeId

The node to stop the job on

opts

StopJobOptions

(Optional) migrationId marks the stop as the source side of a migration: the job’s history records it as "migration" (with the id as additionalReason) rather than "userRequested".

Returns:

Promise<void>