]> Piment Noir Git Repositories - poolifier.git/blame_incremental - tests/worker-files/cluster/errorWorker.cjs
build(deps): bump the regular group across 11 directories with 1 update (#2911)
[poolifier.git] / tests / worker-files / cluster / errorWorker.cjs
... / ...
CommitLineData
1'use strict'
2const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
3
4/**
5 *
6 */
7function error () {
8 throw new Error('Error Message from ClusterWorker')
9}
10
11module.exports = new ClusterWorker(error, {
12 killBehavior: KillBehaviors.HARD,
13 maxInactiveTime: 500,
14})