Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/express-worker_thr...
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerHardBehavior.js
... / ...
CommitLineData
1'use strict'
2const { ClusterWorker, KillBehaviors } = require('../../../lib')
3const { sleepTaskFunction } = require('../../test-utils.js')
4
5async function sleep (data) {
6 return sleepTaskFunction(data, 50000)
7}
8
9module.exports = new ClusterWorker(sleep, {
10 killBehavior: KillBehaviors.HARD,
11 maxInactiveTime: 500
12})