208e5ba2d46da64e9d1418f68e0f10abe8a54deb
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerSoftBehavior.js
1 'use strict'
2 const { ClusterWorker } = require('../../../lib')
3 const { sleepWorkerFunction } = require('../../test-utils')
4
5 async function sleep (data) {
6 return sleepWorkerFunction(data, 50000)
7 }
8
9 module.exports = new ClusterWorker(sleep, {
10 maxInactiveTime: 500
11 })