Skip to main content

Variable.JobStatus

const JobStatus: {
Active: "active";
Completed: "completed";
Delayed: "delayed";
Failed: "failed";
Prioritized: "prioritized";
Unknown: "unknown";
Waiting: "waiting";
WaitingChildren: "waiting-children";
};

Status of a BullMQ job through its lifecycle.

  • completed: The job finished successfully.
  • failed: The job threw an unrecoverable error and will not be retried (or exhausted all retries).
  • active: The job is currently being processed by a worker.
  • delayed: The job is scheduled to run at a future time (e.g. after a delay or cron schedule).
  • prioritized: The job is in the queue and ready to run, but ranked by priority rather than FIFO order.
  • waiting: The job is in the queue waiting for a free worker slot (FIFO).
  • waiting-children: The job is paused, waiting for all its child jobs to complete before it can proceed.
  • unknown: The job state could not be determined (e.g. the job was removed from Redis).

Type Declaration

NameTypeDefault value
Active"active"'active'
Completed"completed"'completed'
Delayed"delayed"'delayed'
Failed"failed"'failed'
Prioritized"prioritized"'prioritized'
Unknown"unknown"'unknown'
Waiting"waiting"'waiting'
WaitingChildren"waiting-children"'waiting-children'