build(deps-dev): bump @types/node
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerHardBehavior.cjs
CommitLineData
4c35177b 1'use strict'
d35e5717
JB
2const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
3const { sleepTaskFunction } = require('../../test-utils.cjs')
4c35177b 4
5async function sleep (data) {
dbca3be9 6 return sleepTaskFunction(data, 50000)
4c35177b 7}
8
9module.exports = new ClusterWorker(sleep, {
cca3bb1a
JB
10 killBehavior: KillBehaviors.HARD,
11 maxInactiveTime: 500
4c35177b 12})