Improvements for #161 (#169)
[poolifier.git] / tests / worker / cluster / errorWorker.js
1 'use strict'
2 const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
3
4 function error (data) {
5 throw new Error('Error Message from ClusterWorker')
6 }
7
8 module.exports = new ClusterWorker(error, {
9 maxInactiveTime: 500,
10 async: false,
11 killBehavior: KillBehaviors.HARD
12 })