Skip to main content

Types

BackoffStrategy

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

Signature

JobUpdate

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

Signature

JobUpdateOptions

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

Signature

pollInterval

propertynumber

timeoutMs

propertynumber

errorOnFail

propertyboolean

CreateQueueOptions

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.

JobData

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

Signature

JobConfig

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 Apr 20, 2026ยทEdit this page