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

Spawn listener tasks non-blocking #562

Closed
ebma opened this issue Oct 23, 2024 · 1 comment · Fixed by #563
Closed

Spawn listener tasks non-blocking #562

ebma opened this issue Oct 23, 2024 · 1 comment · Fixed by #563
Assignees
Labels
priority:high Do it now

Comments

@ebma
Copy link
Member

ebma commented Oct 23, 2024

Context

Some experiments on the refactorings in #545 showed here, that all the 'xx Listener' tasks spawned are blocking and don't yield for a very long time. As can be seen on the following screenshot, 8 of the listener tasks have a 'Busy' time of about 31s and this accumulated all at the same time (when starting the vault client).

image

Since our processing power on the pods is very limited, we can't have that many tasks busy in parallel, and the whole process gets stuck.

TODO

Refactor the code so that the spawned tasks either yield or are executed sequentually.

@ebma
Copy link
Member Author

ebma commented Oct 23, 2024

@pendulum-chain/product This is quite urgent as we are still facing issues with running the vault clients on Amplitude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high Do it now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants