Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
})
const workerInfo = this.getWorkerInfo(workerNodeKey)
this.sendToWorker(workerNodeKey, {
- checkActive: true,
- workerId: workerInfo.id as number
+ checkActive: true
})
if (this.taskFunctions.size > 0) {
for (const [taskFunctionName, taskFunction] of this.taskFunctions) {
/** @inheritDoc */
protected sendStartupMessageToWorker (workerNodeKey: number): void {
this.sendToWorker(workerNodeKey, {
- ready: false,
- workerId: this.workerNodes[workerNodeKey].info.id as number
+ ready: false
})
}
/** @inheritDoc */
protected sendStartupMessageToWorker (workerNodeKey: number): void {
const workerNode = this.workerNodes[workerNodeKey]
- const worker = workerNode.worker
const port2: MessagePort = (workerNode.messageChannel as MessageChannel)
.port2
- worker.postMessage(
+ workerNode.worker.postMessage(
{
ready: false,
workerId: workerNode.info.id,