Skip to content

jwulf/zeebe-canaryize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
})

About

Canaryize a Node.js Zeebe client or Worker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published