Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.promiseResponseMap.delete(taskId!)
workerNode.emit('taskFinished', taskId)
- if (
- this.opts.enableTasksQueue === true &&
- !this.destroying &&
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- workerNode != null
- ) {
+ if (this.opts.enableTasksQueue === true && !this.destroying) {
const workerNodeTasksUsage = workerNode.usage.tasks
if (
this.tasksQueueSize(workerNodeKey) > 0 &&