Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add blocking progress mode to Python async #116
Add blocking progress mode to Python async #116
Changes from 4 commits
6dae328
155ab58
1c1ab87
e5f4a40
7952ef1
edd3192
e3f9cc3
b5f95f0
60e49d1
91ab7bf
26480a5
6da6c5b
80d7e14
2b7c4cf
77b3659
1e3c55e
755bc97
e22b227
c6f9654
d4a8795
71d3697
c800ca4
18e3cf0
2ffac66
c5c2ceb
279cb4c
c624898
5769f31
4f7a7f2
23bb0bb
01cbe8a
50d3f47
dbb6386
8e4bc38
a806e45
9e2d017
94d05e9
caf67f9
74913fa
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I think I understand the constraint, I am not sure what it means for the "next state" to be epoll_wait. Surely there can be arbitrary non-ucx tasks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna be honest and say my understanding here is also a bit fuzzy, and as you noted yourself this "doesn't work" (except when it does), with the original being adapted from https://stackoverflow.com/a/48491563. In my understanding, what
epoll_wait
refers to here is the socket state, which is there solely to provide a mechanism to preventasyncio
from running out of "ready" tasks, soepoll_wait
will ensure that if nothing useful happens in the event loop,asyncio
will still be awaken at some point to allow the loop to reevaluate.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who does the
epoll_wait
call?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per my #116 (comment), I believe this is related to the sockets.