Skip to main content

SqlJobQueueStrategy

A JobQueueStrategy which uses the configured SQL database to persist jobs in the queue. This strategy is used by the DefaultJobQueuePlugin.

Signature

init

method(injector: Injector) =>

destroy

method() =>

add

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

next

method(queueName: string) => Promise<Job | undefined>

update

method(job: Job<any>) => Promise<void>

findMany

method(options?: JobListOptions) => Promise<PaginatedList<Job>>

findOne

method(id: ID) => Promise<Job | undefined>

findManyById

method(ids: ID[]) => Promise<Job[]>

removeSettledJobs

method(queueNames: string[] = [], olderThan?: Date) =>
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page