repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
build(ci): add autofix GH action
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
longRunningWorkerSoftBehavior.cjs
1
'use strict'
2
const { ClusterWorker } = require('../../../lib/index.cjs')
3
const { sleepTaskFunction } = require('../../test-utils.cjs')
4
5
/**
6
*
7
* @param data
8
* @returns
9
*/
10
async function sleep (data) {
11
return sleepTaskFunction(data, 50000)
12
}
13
14
module.exports = new ClusterWorker(sleep, {
15
maxInactiveTime: 500,
16
})