perf: increase internal benchmark history
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerHardBehavior.js
CommitLineData
4c35177b 1'use strict'
cdace0e5 2const { ClusterWorker, KillBehaviors } = require('../../../lib')
dbca3be9 3const { sleepTaskFunction } = require('../../test-utils')
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})