repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
build(ci): test TS configuration support in sonar cloud action
[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
maxInactiveTime
:
500
,
10
killBehavior
:
KillBehaviors
.
HARD
11
})