JobStatus
Defined in: packages/core/src/jobs/types.ts:19
Represents the lifecycle states of a job in the queue.
Jobs transition through states as follows:
- PENDING → PROCESSING (when picked up by a worker)
- PROCESSING → COMPLETED (on success)
- PROCESSING → PENDING (on failure, if retries remain)
- PROCESSING → FAILED (on non-retryable failure or after max retries exhausted)
- PENDING → CANCELLED (on manual cancellation)
Type Declaration
Section titled “Type Declaration”CANCELLED
Section titled “CANCELLED”Job was manually cancelled
COMPLETED
Section titled “COMPLETED”Job completed successfully
FAILED
Section titled “FAILED”Job failed without automatic retries, either explicitly or after exhausting retry attempts
PENDING
Section titled “PENDING”Job is waiting to be picked up by a worker
PROCESSING
Section titled “PROCESSING”Job is currently being executed by a worker