Skip to content

JobsModule

JobsModule.forRoot(...) once in the root module, JobsModule.forFeature([queue]) in each module that enqueues or works a queue.

The root module is global: it owns the producer connection and the runtime that starts workers and sweeps. forFeature only provides the JobQueue of each queue for @InjectQueue.

new JobsModule(): JobsModule

JobsModule

static forFeature(queues): DynamicModule

readonly QueueDefinition<object>[]

DynamicModule


static forRoot(options): DynamicModule

JobsModuleOptions

DynamicModule


static forRootAsync(options): DynamicModule

JobsModuleAsyncOptions

DynamicModule