Merge dependabot/npm_and_yarn/typescript-eslint/parser-6.7.5 into combined-prs-branch
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerSoftBehavior.js
1 'use strict'
2 const { ClusterWorker } = require('../../../lib')
3 const { sleepTaskFunction } = require('../../test-utils.js')
4
5 async function sleep (data) {
6 return sleepTaskFunction(data, 50000)
7 }
8
9 module.exports = new ClusterWorker(sleep, {
10 maxInactiveTime: 500
11 })