Number of times job processing has been started (includes retries)
OptionaldeduplicationDeduplication ID (if set via jobId)
Delay in ms before job becomes available for processing
OptionalfailedOptionalfinishedTimestamp when job finished (completed or failed)
Original job options
OptionalparentParent job reference (if this job is part of a flow)
OptionalparentParent key in format queueName:jobId
Job priority (higher = processed sooner)
OptionalprocessedWorker/client identifier processing this job
OptionalprocessedTimestamp when job started processing
OptionalrepeatRepeat job key (for repeatable jobs)
OptionalreturnvalueStack traces from failed attempts
Number of times this job has been stalled
OptionaltokenLock token for this job (if processing)
Get job as raw JSON (stringified values)
Change job delay
Clear job logs
OptionalkeepLogs: numberDiscard this job - marks it to not be processed further. The job will be moved to failed state with a "discarded" reason.
Extend job lock duration
Get the return values of all children jobs (BullMQ v5 compatible). Returns a Record where keys are job keys (queueName:jobId) and values are return values.
Type of the children return values
Get job dependencies (children)
Optionalopts: GetDependenciesOptsGet count of job dependencies
Optionalopts: GetDependenciesOptsGet return values of failed children jobs.
Record where keys are job keys (queueName:jobId) and values are failure reasons
Get child job failures that were explicitly ignored (via ignoreDependencyOnFailure).
Record where keys are job keys and values are failure reasons
Get current job state
Check if job is currently active/processing
Check if job has completed successfully
Check if job is delayed
Check if job has failed
Check if job is in waiting state
Check if job is waiting for children to complete
Log a message to the job
Move job to completed state.
The return value of the job
Optionaltoken: string
Lock token (optional in embedded mode)
OptionalfetchNext: boolean
Whether to fetch the next job (default: true)
The next job data or null
Move job to delayed state.
When the job should become available
Optionaltoken: string
Lock token (optional in embedded mode)
Move job to failed state.
The error that caused the failure
Optionaltoken: string
Lock token (optional in embedded mode)
OptionalfetchNext: boolean
Whether to fetch the next job (default: true)
Move job back to waiting state.
Optionaltoken: string
Lock token (optional in embedded mode)
true if job was moved
Move job to waiting-children state. Job will wait for all children to complete before processing.
Optionaltoken: string
Lock token (optional in embedded mode)
Optionalopts: { child?: { id: string; queue: string } }
Options for the operation
true if job was moved
Promote delayed job to waiting
Remove this job from the queue
Remove this job's dependency relationship with its parent.
true if dependency was removed
Remove the deduplication key associated with this job.
true if key was removed
Remove all unprocessed child jobs of this job.
Retry this job
Update job progress (0-100)
Optionalmessage: string
Job interface exposed to users