Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refraining from using gopool for long-running tasks[BNB-19] #20

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

welkin22
Copy link
Contributor

@welkin22 welkin22 commented Oct 16, 2023

Description

Use go to run long-running tasks instead of gopool

Rationale

The gopool limits the go-routines to run at a time, keeping the total go-routine memory in a manageable state.
However, for a long-running task, it will occupy a worker from the pool and never return, causing the effective pool size to decrease.

Example

none

Changes

Notable changes:

  • Use go to run long-running tasks instead of gopool

@welkin22 welkin22 changed the title fix: refraining from using gopool for long-running tasks fix: refraining from using gopool for long-running tasks[BNB-19] Oct 16, 2023
@owen-reorg owen-reorg merged commit e13d451 into bnb-chain:develop Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants