-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Temporarily opt out of coop task budgeting #2488
Comments
I'm not sure if this helps, but here's an annotated stack trace that hopefully clarifies the problem somewhat:
|
I remember we discussed this some over Discord and we had a strategy... but now I forgot what it was. #2711 disables coop budgeting when in |
We did find a different workaround, using a different thread and a pair of unbounded std channels.
Yeah that's what we would have needed. |
Closing - I have no need for this any more and if I did I'd now open an issue requesting unsafe recursive block_on(). |
I realize this what I'm going to describe here sounds sketchy, but I really do know what I'm doing, and I've not been able to come up with a different solution.
The request is -- can we have a (unsafe and/or feature-gated as far as I'm concerned) facility to temporarily opt out of coop task budgeting?
This all used to work fine until coop was added. But now, polling the websocket sometimes returns
Poll::Pending
indefinitely because the task has run out of budget.So can we have a way to opt out of it for this exceptional circumstance?
The text was updated successfully, but these errors were encountered: