Skip to main content

Types

Defines the backoff strategy used when retrying failed jobs. Returns the delay in ms that should pass before the failed job is retried.

Signature

Job update status as returned from the SubscribableJob's update() method.

Signature

Job update options, that you can specify by calling SubscribableJob updates method.

Signature

pollInterval

propertynumber

timeoutMs

propertynumber

errorOnFail

propertyboolean

Used to configure a new JobQueue instance.

Signature

name

propertystring

The name of the queue, e.g. "image processing", "re-indexing" etc.

process

property(job: Job<T>) => Promise<any>

Defines the work to be done for each job in the queue. The returned promise should resolve when the job is complete, or be rejected in case of an error.

A JSON-serializable data type which provides a Jobwith the data it needs to be processed.

Signature

Used to instantiate a new Job

Signature

queueName

propertystring

data

propertyT

retries

propertynumber

attempts

propertynumber

id

propertyID

state

propertyJobState

progress

propertynumber

result

propertyany

error

propertyany

createdAt

propertyDate

startedAt

propertyDate

settledAt

propertyDate
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page