-
Notifications
You must be signed in to change notification settings - Fork 200
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
Benchmark results never gets reported #202
Labels
software
Component: software
Comments
Looks like that commit can be cleanly reverted, and after that everything does work as supposed to.
|
The following patch solves the issue. diff --git a/software/glasgow/support/task_queue.py b/software/glasgow/support/task_queue.py
index 25cda9f..cb87c0c 100644
--- a/software/glasgow/support/task_queue.py
+++ b/software/glasgow/support/task_queue.py
@@ -21,7 +21,8 @@ class TaskQueue:
def _callback(self, future):
self._live.remove(future)
- self._done.append(future)
+ if not future.cancelled():
+ self._done.append(future)
def submit(self, coro):
""" I miss the background behind this change, @whitequark could you clarify? |
The background for the change is described in the commit message. Whether your patch is correct or not, I can't say offhand because asyncio cancellation semantics is annoyingly tricky. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've traced the issue to
iface.read
never continuing and bisected the breaking patch to a7d041f.The text was updated successfully, but these errors were encountered: