Commit | Line | Data |
---|---|---|
325f50bc | 1 | 'use strict' |
65d7a1c9 | 2 | const { ClusterWorker, KillBehaviors } = require('../../../lib') |
2eb14889 JB |
3 | const { executeTaskFunction } = require('../../test-utils.js') |
4 | const { TaskFunctions } = require('../../test-types.js') | |
325f50bc S |
5 | |
6 | function test (data) { | |
6db75ad9 | 7 | data = data || {} |
dbca3be9 JB |
8 | data.function = data.function || TaskFunctions.jsonIntegerSerialization |
9 | return executeTaskFunction(data) | |
325f50bc S |
10 | } |
11 | ||
4c35177b | 12 | module.exports = new ClusterWorker(test, { |
cca3bb1a JB |
13 | killBehavior: KillBehaviors.HARD, |
14 | maxInactiveTime: 500 | |
4c35177b | 15 | }) |