1.2.7 • Published 13 days ago

@anchan828/nest-bull-terminus v1.2.7

Weekly downloads
189
License
MIT
Repository
github
Last release
13 days ago

@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

  1. Create Health Module
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 {}
  1. Create Health Bull Queue
import { BullHealthCheckQueue } from "@anchan828/nest-bull-terminus";

@Module({
  imports: [
    BullModule.forRoot({
      queues: [BullHealthCheckQueue],
    }),
    HealthModule,
  ],
})
class AppModule {}

BullHealthCheckQueue is a simple queue that just returns Promise.resolve().

export class BullHealthCheckQueue {
  @BullQueueProcess()
  async process(): Promise<void> {
    return Promise.resolve();
  }
}

License

MIT

1.2.7

13 days ago

1.2.6

20 days ago

1.2.5

26 days ago

1.2.4

1 month ago

1.2.0

2 months ago

1.2.3

1 month ago

1.2.2

2 months ago

1.2.1

2 months ago

1.1.8

2 months ago

1.1.7

2 months ago

1.1.6

2 months ago

1.1.5

3 months ago

1.1.4

3 months ago

1.1.3

3 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.1.2

3 months ago

1.0.22

6 months ago

1.0.26

5 months ago

1.0.25

5 months ago

1.0.24

5 months ago

1.0.23

6 months ago

1.0.29

4 months ago

1.0.28

4 months ago

1.0.27

5 months ago

1.0.31

4 months ago

1.0.30

4 months ago

1.0.19

6 months ago

1.0.18

7 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.17

7 months ago

1.0.16

7 months ago

1.0.15

7 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.5.33

11 months ago

0.5.32

11 months ago

0.5.31

11 months ago

0.5.30

12 months ago

0.5.29

12 months ago

0.5.28

12 months ago

0.5.27

1 year ago

0.5.26

1 year ago

0.5.25

1 year ago

0.5.23

1 year ago

0.5.24

1 year ago

0.5.22

1 year ago

0.5.21

1 year ago

0.5.20

1 year ago

0.5.19

1 year ago

0.5.18

1 year ago

0.5.17

1 year ago

0.5.16

1 year ago

0.5.15

1 year ago

0.5.14

1 year ago

0.5.13

1 year ago

0.5.12

1 year ago

0.5.11

1 year ago

0.5.10

1 year ago

0.5.9

1 year ago

0.5.8

1 year ago

0.5.7

1 year ago

0.5.6

1 year ago

0.5.5

1 year ago

0.5.4

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.18

1 year ago

0.4.17

1 year ago

0.4.16

1 year ago

0.4.15

2 years ago

0.4.14

2 years ago

0.4.13

2 years ago

0.4.12

2 years ago

0.4.11

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.40

2 years ago

0.3.37

2 years ago

0.3.36

2 years ago

0.3.35

3 years ago

0.3.34

3 years ago

0.3.33

3 years ago

0.3.32

3 years ago

0.3.31

3 years ago

0.3.30

3 years ago

0.3.29

3 years ago

0.3.28

3 years ago

0.3.27

3 years ago

0.3.26

3 years ago

0.3.25

3 years ago

0.3.24

3 years ago

0.3.23

3 years ago

0.3.22

3 years ago

0.3.20

3 years ago

0.3.19

3 years ago

0.3.18

3 years ago

0.3.17

3 years ago

0.3.16

3 years ago

0.3.15

3 years ago

0.3.14

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago