isCompletedJob
Defined in: packages/core/src/jobs/guards.ts:143
Type guard to check if a job has completed successfully.
A convenience helper for checking if a job finished without errors.
Equivalent to job.status === JobStatus.COMPLETED 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 'completed'