JobStatus
Defined in: packages/core/src/jobs/types.ts:20
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 failure, 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 permanently failed after exhausting all 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