Skip to main content

PubSubJobQueueStrategy

This JobQueueStrategy uses Google Cloud Pub/Sub to implement a job queue for Vendure. It should not be used alone, but as part of the PubSubPlugin.

Note: To use this strategy, you need to manually install the @google-cloud/pubsub package:

  • Extends: InjectableJobQueueStrategy

  • Implements: JobQueueStrategy

init

method(injector: Injector) =>

destroy

method() =>

add

method(job: Job<Data>) => Promise<Job<Data>>

start

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

stop

method(queueName: string, process: (job: Job<Data>) => Promise<any>) =>
Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page