Report some code cleanups from work in progress PR
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerHardBehavior.js
1 'use strict'
2 const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
3 const TestUtils = require('../../test-utils')
4
5 async function sleep (data) {
6 return TestUtils.workerSleepFunction(data, 50000)
7 }
8
9 module.exports = new ClusterWorker(sleep, {
10 maxInactiveTime: 500,
11 async: true,
12 killBehavior: KillBehaviors.HARD
13 })