if (
this.cannotStealTask() ||
this.backPressure ||
+ this.opts.tasksQueueOptions?.tasksStealingRatio === 0 ||
(this.info.stealingWorkerNodes ?? 0) >
- Math.round(
+ Math.ceil(
this.workerNodes.length *
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.opts.tasksQueueOptions!.tasksStealingRatio!
if (
!workerNode.info.continuousStealing &&
(this.cannotStealTask() ||
+ this.opts.tasksQueueOptions?.tasksStealingRatio === 0 ||
(this.info.stealingWorkerNodes ?? 0) >
- Math.round(
+ Math.ceil(
this.workerNodes.length *
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.opts.tasksQueueOptions!.tasksStealingRatio!