b8e11d369d20c3ff06e2fc506f83aeda39feaa49
[poolifier.git] / tests / worker-files / cluster / errorWorker.js
1 'use strict'
2 const { ClusterWorker, KillBehaviors } = require('../../../lib')
3
4 function error () {
5 throw new Error('Error Message from ClusterWorker')
6 }
7
8 module.exports = new ClusterWorker(error, {
9 killBehavior: KillBehaviors.HARD,
10 maxInactiveTime: 500
11 })