docs: refine changelog entries
[poolifier.git] / tests / worker-files / cluster / errorWorker.cjs
CommitLineData
325f50bc 1'use strict'
d35e5717 2const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
325f50bc 3
fe2f6f84 4function error () {
325f50bc
S
5 throw new Error('Error Message from ClusterWorker')
6}
7
8module.exports = new ClusterWorker(error, {
cca3bb1a
JB
9 killBehavior: KillBehaviors.HARD,
10 maxInactiveTime: 500
325f50bc 11})