build(ci): test TS configuration support in sonar cloud action
[poolifier.git] / tests / worker-files / cluster / testWorker.js
CommitLineData
325f50bc 1'use strict'
65d7a1c9 2const { ClusterWorker, KillBehaviors } = require('../../../lib')
dbca3be9
JB
3const { executeTaskFunction } = require('../../test-utils')
4const { TaskFunctions } = require('../../test-types')
325f50bc
S
5
6function test (data) {
6db75ad9 7 data = data || {}
dbca3be9
JB
8 data.function = data.function || TaskFunctions.jsonIntegerSerialization
9 return executeTaskFunction(data)
325f50bc
S
10}
11
4c35177b 12module.exports = new ClusterWorker(test, {
13 maxInactiveTime: 500,
1a81f8af 14 killBehavior: KillBehaviors.HARD
4c35177b 15})