|
|
@ -109,10 +109,12 @@ module.exports = (_options = {}) => { |
|
|
|
|
|
|
|
|
|
|
|
const terminate = async (jobId) => { |
|
|
|
const terminate = async (jobId) => { |
|
|
|
if (worker !== null) { |
|
|
|
if (worker !== null) { |
|
|
|
|
|
|
|
/* |
|
|
|
await startJob(createJob({ |
|
|
|
await startJob(createJob({ |
|
|
|
id: jobId, |
|
|
|
id: jobId, |
|
|
|
action: 'terminate', |
|
|
|
action: 'terminate', |
|
|
|
})); |
|
|
|
})); |
|
|
|
|
|
|
|
*/ |
|
|
|
terminateWorker(worker); |
|
|
|
terminateWorker(worker); |
|
|
|
worker = null; |
|
|
|
worker = null; |
|
|
|
} |
|
|
|
} |
|
|
|