repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
build(deps): bump poolifier
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
errorWorker.cjs
1
'use strict'
2
const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
3
4
/**
5
*
6
*/
7
function error () {
8
throw new Error('Error Message from ClusterWorker')
9
}
10
11
module.exports = new ClusterWorker(error, {
12
killBehavior: KillBehaviors.HARD,
13
maxInactiveTime: 500,
14
})