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

Closes another race condition in task waiting #14124

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

chrisguidry
Copy link
Collaborator

There is a very narrow gap here, but it's possible nonetheless, where an event
could sneak through in the time between checking for a previously completed
task run and when we start waiting for the event to arrive on the websocket.
This closes the gap so that we make one more check just before we start waiting,
after having established the asyncio.Event for completion.

Part of #14098

There is a very narrow gap here, but it's possible nonetheless, where an event
could sneak through in the time between checking for a previously completed
task run and when we start waiting for the event to arrive on the websocket.
This closes the gap so that we make one more check just before we start waiting,
after having established the `asyncio.Event` for completion.

Part of #14098
@chrisguidry chrisguidry requested a review from a team as a code owner June 18, 2024 19:37
@chrisguidry chrisguidry merged commit 983223e into main Jun 18, 2024
26 checks passed
@chrisguidry chrisguidry deleted the another-task-scheduling-race branch June 18, 2024 20:41
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.

2 participants