feat: remove the experimental status of LEAST_ELU WCS
[poolifier.git] / src / pools / abstract-pool.ts
index 428dd9128ca8e26e20d5e766f6cab57b6c04ca2f..1aa1a13413f807019352907d2dac7a635ab665d1 100644 (file)
@@ -819,10 +819,8 @@ export abstract class AbstractPool<
       const taskFunctionWorkerUsage = this.workerNodes[
         workerNodeKey
       ].getTaskFunctionWorkerUsage(task.name as string) as WorkerUsage
-      if (taskFunctionWorkerUsage != null) {
-        ++taskFunctionWorkerUsage.tasks.executing
-        this.updateWaitTimeWorkerUsage(taskFunctionWorkerUsage, task)
-      }
+      ++taskFunctionWorkerUsage.tasks.executing
+      this.updateWaitTimeWorkerUsage(taskFunctionWorkerUsage, task)
     }
   }
 
@@ -846,7 +844,7 @@ export abstract class AbstractPool<
     if (
       this.shallUpdateTaskFunctionWorkerUsage(workerNodeKey) &&
       this.workerNodes[workerNodeKey].getTaskFunctionWorkerUsage(
-        message.taskPerformance?.name ?? DEFAULT_TASK_NAME
+        message.taskPerformance?.name as string
       ) != null
     ) {
       const taskFunctionWorkerUsage = this.workerNodes[