* Gets the given worker its tasks usage in the pool.
*
* @param worker - The worker.
+ * @throws {@link Error} if the worker is not found in the pool worker nodes.
* @returns The worker tasks usage.
*/
private getWorkerTasksUsage (worker: Worker): TasksUsage | undefined {