This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@anchan828/nest-bull-terminus
TypeScript icon, indicating that this package has built-in type declarations

3.2.23 • Public • Published

@anchan828/nest-bull-terminus

npm NPM

Description

The terminus of The Bull module for Nest.

Installation

$ npm i --save @anchan828/nest-bull-terminus @nestjs/terminus @anchan828/nest-bull bull
$ npm i --save-dev @types/bull

Quick Start

import { BullHealthCheckQueue, BullHealthIndicator, BullHealthModule } from "@anchan828/nest-bull-terminus";

@Controller("/health")
class BullHealthController {
  constructor(private health: HealthCheckService, private bull: BullHealthIndicator) {}

  @Get()
  @HealthCheck()
  check() {
    return this.health.check([() => this.bull.isHealthy()]);
  }
}

@Module({
  controllers: [BullHealthController],
  imports: [BullHealthModule, TerminusModule],
})
export class HealthModule {}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @anchan828/nest-bull-terminus

Weekly Downloads

1

Version

3.2.23

License

MIT

Unpacked Size

9.48 kB

Total Files

11

Last publish

Collaborators

  • anchan828