build(ci): test TS configuration support in sonar cloud action
[poolifier.git] / tests / worker-files / cluster / errorWorker.js
CommitLineData
325f50bc 1'use strict'
cdace0e5 2const { ClusterWorker, KillBehaviors } = require('../../../lib')
325f50bc 3
fe2f6f84 4function error () {
325f50bc
S
5 throw new Error('Error Message from ClusterWorker')
6}
7
8module.exports = new ClusterWorker(error, {
9 maxInactiveTime: 500,
1a81f8af 10 killBehavior: KillBehaviors.HARD
325f50bc 11})