- * Whether the worker node is eligible or not.
- * A worker node is eligible if it is ready and does not have back pressure.
- *
- * @param workerNodeKey - The worker node key.
- * @returns `true` if the worker node is eligible, `false` otherwise.
- * @see {@link isWorkerNodeReady}
- * @see {@link hasWorkerNodeBackPressure}
- */
- protected isWorkerNodeEligible (workerNodeKey: number): boolean {
- return (
- this.isWorkerNodeReady(workerNodeKey) &&
- !this.hasWorkerNodeBackPressure(workerNodeKey)
- )
- }
-
- /**
- * Gets the worker task runtime.