isCancelledJob
Defined in: packages/core/src/jobs/guards.ts:189
Type guard to check if a job has been manually cancelled.
A convenience helper for checking if a job was cancelled by an operator.
Equivalent to job.status === JobStatus.CANCELLED but with better semantics.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Description |
|---|---|
T | The type of the job’s data payload |
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
job | Job<T> | The job to check |
Returns
Section titled “Returns”boolean
true if the job status is 'cancelled'