repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[poolifier.git]
/
src
/
pools
/
abstract-pool.ts
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index cd1d364d21c15db6cb9b5fae1e6af8e0029b2510..b7b30161ac7676511f0805d56a5a9284299c7f66 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-1256,7
+1256,7
@@
export abstract class AbstractPool<
this.redistributeQueuedTasks(this.workerNodes.indexOf(workerNode))
}
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
this.redistributeQueuedTasks(this.workerNodes.indexOf(workerNode))
}
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
- workerNode?.terminate().catch(
error
=> {
+ workerNode?.terminate().catch(
(error: unknown)
=> {
this.emitter?.emit(PoolEvents.error, error)
})
})
this.emitter?.emit(PoolEvents.error, error)
})
})
@@
-1297,7
+1297,7
@@
export abstract class AbstractPool<
) {
// Flag the worker node as not ready immediately
this.flagWorkerNodeAsNotReady(localWorkerNodeKey)
) {
// Flag the worker node as not ready immediately
this.flagWorkerNodeAsNotReady(localWorkerNodeKey)
- this.destroyWorkerNode(localWorkerNodeKey).catch(
error
=> {
+ this.destroyWorkerNode(localWorkerNodeKey).catch(
(error: unknown)
=> {
this.emitter?.emit(PoolEvents.error, error)
})
}
this.emitter?.emit(PoolEvents.error, error)
})
}
@@
-1311,7
+1311,7
@@
export abstract class AbstractPool<
taskFunctionOperation: 'add',
taskFunctionName,
taskFunction: taskFunction.toString()
taskFunctionOperation: 'add',
taskFunctionName,
taskFunction: taskFunction.toString()
- }).catch(
error
=> {
+ }).catch(
(error: unknown)
=> {
this.emitter?.emit(PoolEvents.error, error)
})
}
this.emitter?.emit(PoolEvents.error, error)
})
}
@@
-1613,7
+1613,7
@@
export abstract class AbstractPool<
this.handleWorkerNodeIdleEvent(eventDetail, stolenTask)
return undefined
})
this.handleWorkerNodeIdleEvent(eventDetail, stolenTask)
return undefined
})
- .catch(
error
=> {
+ .catch(
(error: unknown)
=> {
this.emitter?.emit(PoolEvents.error, error)
})
}
this.emitter?.emit(PoolEvents.error, error)
})
}