const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
const { sleepTaskFunction } = require('../../test-utils.cjs')
+/**
+ *
+ * @param data
+ */
async function error (data) {
return sleepTaskFunction(
data,
module.exports = new ClusterWorker(error, {
killBehavior: KillBehaviors.HARD,
- maxInactiveTime: 500
+ maxInactiveTime: 500,
})