queue-bull-component
Installation
Install BullQueueComponent using npm
;
$ [npm install | yarn add] queue-bull-component
Basic Use
Configure and load BullQueueComponent in the application constructor
as shown below.
import {BullQueueComponent, BullQueueComponentOptions, DEFAULT_QUEUE_BULL_COMPONENT_OPTIONS} from 'queue-bull-component';
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
constructor(options: ApplicationConfig = {}) {
const opts: BullQueueComponentOptions = DEFAULT_QUEUE_BULL_COMPONENT_OPTIONS;
this.configure(BullQueueComponentBindings.COMPONENT).to(opts);
});
this.component(BullQueueComponent);
}
}