fix: revert now unneeded workaround
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Jul 2023 22:02:30 +0000 (00:02 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Jul 2023 22:02:30 +0000 (00:02 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index fc18d6b6b4b0492b36fb8a168ec34fc5b96b0f6c..22c3562094953666b8368e1389353b5316e0d212 100644 (file)
@@ -1130,23 +1130,13 @@ export abstract class AbstractPool<
       if (worker == null) {
         return 0
       }
-      // FIXME: Workaround tasks queue initialization race issue.
-      try {
-        return this.tasksQueueSize(this.getWorkerNodeKey(worker))
-      } catch {
-        return 0
-      }
+      return this.tasksQueueSize(this.getWorkerNodeKey(worker))
     }
     const getTasksMaxQueueSize = (worker?: Worker): number => {
       if (worker == null) {
         return 0
       }
-      // FIXME: Workaround tasks queue initialization race issue.
-      try {
-        return this.tasksMaxQueueSize(this.getWorkerNodeKey(worker))
-      } catch {
-        return 0
-      }
+      return this.tasksMaxQueueSize(this.getWorkerNodeKey(worker))
     }
     return {
       tasks: {