npm

zeebe-canaryize
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Zeebe Canaryize

Canaryize a Node.js Zeebe client or Worker, using healthchecks.io.

This approach hooks into the events emitted by a ZBClient or ZBWorker on gRPC connection readiness or connection failure to start / stop a healthchecks.io process.

Install to your project

npm i zeebe-canaryize

Example Usage

import {ZBClient} from 'zeebe-node'
import {canaryize} from 'zeebe-canaryize'

const zbc = new ZBClient()
canaryize(zbc, {
    url: 'https://hc-ping.com/785c9195-0e5d-493b-b8ec-fc2f95532730',
    minutes: 5
})

const worker = zbc.createWorker(null, 'my-task-type', (job, complete) => {
    console.log(job);
    complete.success()
})
canaryize(worker, {
    url: 'https://hc-ping.com/dbd95a40-1f77-4cb4-9104-805182a16ce3',
    minutes: 5
})

Dependents (0)

Package Sidebar

Install

npm i zeebe-canaryize

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

8.68 kB

Total Files

8

Last publish

Collaborators

  • sitapati