refactor: cleanup internal pool messaging code
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerHardBehavior.js
CommitLineData
4c35177b 1'use strict'
cdace0e5 2const { ClusterWorker, KillBehaviors } = require('../../../lib')
bdacc2d2 3const TestUtils = require('../../test-utils')
4c35177b 4
5async function sleep (data) {
6db75ad9 6 return TestUtils.sleepWorkerFunction(data, 50000)
4c35177b 7}
8
9module.exports = new ClusterWorker(sleep, {
10 maxInactiveTime: 500,
1a81f8af 11 killBehavior: KillBehaviors.HARD
4c35177b 12})