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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JobsModule():
JobsModule
Returns
Section titled “Returns”JobsModule
Methods
Section titled “Methods”forFeature()
Section titled “forFeature()”
staticforFeature(queues):DynamicModule
Parameters
Section titled “Parameters”queues
Section titled “queues”readonly QueueDefinition<object>[]
Returns
Section titled “Returns”DynamicModule
forRoot()
Section titled “forRoot()”
staticforRoot(options):DynamicModule
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”DynamicModule
forRootAsync()
Section titled “forRootAsync()”
staticforRootAsync(options):DynamicModule
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”DynamicModule