Types
Defines the backoff strategy used when retrying failed jobs. Returns the delay in ms that should pass before the failed job is retried.
Job update status as returned from the SubscribableJob's update() method.
Job update options, that you can specify by calling SubscribableJob updates method.
Used to configure a new JobQueue instance.
name
property
stringThe 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.
Used to instantiate a new Job
Was this chapter helpful?