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

No way to monitor backups in scheduler #1557

Open
Tasty213 opened this issue Nov 13, 2024 · 1 comment
Open

No way to monitor backups in scheduler #1557

Tasty213 opened this issue Nov 13, 2024 · 1 comment

Comments

@Tasty213
Copy link

Hi,

I think a program i'm writing has a problem executing tasks submitted to a io_context quickly enough. In particular the program runs fine but over a long period of time it appears that some tasks are never executed after being submitted for execution leading to an eventual crash as the program thinks it's been disconnected from the rest of the system. I can see that there's a boost::asio::execution::outstanding_work property that i can access but i can't actually retrieve the value from it.

Is there any way to periodically report how many tasks a IO Context has on its queue to execute so i can determine if there is some sort of backup concurring?

Thanks in advance

@101wave
Copy link

101wave commented Nov 14, 2024

I am new to C++ and I guess I should extend the life cycle of the session, similar to pseudo-closure

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

No branches or pull requests

2 participants