Skip to main content

JobQueueStrategy

Defines how the jobs in the JobQueueService are persisted and accessed. Custom strategies can be defined to make use of external services such as Redis.

Info

This is configured via the jobQueueOptions.jobQueueStrategy property of your VendureConfig.

Signature

add

method(job: Job<Data>, jobOptions?: JobQueueStrategyJobOptions<Data>) => Promise<Job<Data>>

Add a new job to the queue.

start

method(queueName: string, process: (job: Job<Data>) => Promise<any>) => Promise<void>

Start the job queue

stop

method(queueName: string, process: (job: Job<Data>) => Promise<any>) => Promise<void>

Stops a queue from running. Its not guaranteed to stop immediately.

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