Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
+++ /dev/null
-auto-install-peers=true
-legacy-peer-deps=true
const taskFunctionWorkerUsage = this.workerNodes[
workerNodeKey
].getTaskFunctionWorkerUsage(
- message.taskPerformance?.name ?? DEFAULT_TASK_NAME
+ message.taskPerformance?.name as string
) as WorkerUsage
this.updateTaskStatisticsWorkerUsage(taskFunctionWorkerUsage, message)
this.updateRunTimeWorkerUsage(taskFunctionWorkerUsage, message)
const errorMessage = this.handleError(e as Error | string)
this.sendToMainWorker({
taskError: {
- name: name ?? DEFAULT_TASK_NAME,
+ name: name as string,
message: errorMessage,
data
},
const errorMessage = this.handleError(e as Error | string)
this.sendToMainWorker({
taskError: {
- name: name ?? DEFAULT_TASK_NAME,
+ name: name as string,
message: errorMessage,
data
},