@condenast/seawasp-bull-queue
v1.1.1
Published
Seawasp Bull queue component package
Downloads
144
Maintainers
Readme
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);
// Put the configuration options here
});
this.component(BullQueueComponent);
// ...
}
// ...
}