Commit | Line | Data |
---|---|---|
c01733f1 | 1 | 'use strict' |
d35e5717 JB |
2 | const { ClusterWorker } = require('../../../lib/index.cjs') |
3 | const { sleepTaskFunction } = require('../../test-utils.cjs') | |
c01733f1 | 4 | |
5 | async function sleep (data) { | |
dbca3be9 | 6 | return sleepTaskFunction(data, 50000) |
c01733f1 | 7 | } |
8 | ||
4c35177b | 9 | module.exports = new ClusterWorker(sleep, { |
6677a3d3 | 10 | maxInactiveTime: 500 |
4c35177b | 11 | }) |