Skip to content

Commit

Permalink
fix: guard worker node back pressure flag change
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed May 8, 2024
1 parent f621cf4 commit 6538ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pools/worker-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export class WorkerNode<Worker extends IWorker, Data = unknown>
detail: { workerId: this.info.id },
}),
)
this.setBackPressureFlag = false
}
this.setBackPressureFlag = false
return tasksQueueSize
}

Expand All @@ -119,8 +119,8 @@ export class WorkerNode<Worker extends IWorker, Data = unknown>
) {
this.setBackPressureFlag = true
this.info.backPressure = false
this.setBackPressureFlag = false
}
this.setBackPressureFlag = false
return task
}

Expand Down

0 comments on commit 6538ac5

Please sign in to comment.