Commit | Line | Data |
---|---|---|
4c35177b | 1 | 'use strict' |
cdace0e5 | 2 | const { ClusterWorker, KillBehaviors } = require('../../../lib') |
2eb14889 | 3 | const { sleepTaskFunction } = require('../../test-utils.js') |
4c35177b | 4 | |
5 | async function sleep (data) { | |
dbca3be9 | 6 | return sleepTaskFunction(data, 50000) |
4c35177b | 7 | } |
8 | ||
9 | module.exports = new ClusterWorker(sleep, { | |
cca3bb1a JB |
10 | killBehavior: KillBehaviors.HARD, |
11 | maxInactiveTime: 500 | |
4c35177b | 12 | }) |