-
Notifications
You must be signed in to change notification settings - Fork 18
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
RuntimeError: cannot reuse already awaited coroutine #108
Comments
This looks like an normal error that happens when the coroutine that is created by the WebSocket handler cylc-uiserver/cylc/uiserver/handlers.py Lines 127 to 129 in 1d35ff4
To quickly reproduce it, just start up the whole Cylc system, then go to the UI, wait for it to load. Now fire a few refreshes (e.g. Looks like when the callback is added, but discarded, it is awaited twice. My guess is that the first time is the legit call, which is interrupted. Then the second is the normal Tornado code that tries to prevent exceptions not being logged. (this error is logged on that |
There are errors that may happen when using WebSockets and can be ignored (e.g. tornadoweb/tornado#2763 (comment)). I guess this error is in the same category. Couldn't find anything we could do to prevent it from being logged without adding a |
Oh dear, this one keeps getting bumped, has anyone managed to reproduce this recently? |
I haven't seen this one in a long time. @dwsutherland have you seen this bug? @oliver-sanders if @dwsutherland confirms he hasn't seen it, tomorrow I will try to reproduce as per issue description above (refreshing the UI), and if I don't see, we can close as cannot reproduce. It might have been fixed by some of the many changes since it was reported 🤷♂️ |
@dwsutherland confirmed in Element he hasn't seen it.
Let's keep it open just until the release. Then we can try firing a few mutations in parallel (craft a command line call and |
I tried to reproduce another issue, and then decided to try this one too. Just for the record, no success in reproducing it after ~5 minutes trying. Switched views (click on the workflow in GScan, then on another one, which stops/starts subscriptions), paused/played. Triggered some tasks. The error never happened 👍 |
I've not seen this for a while either. The event loop may have changed somewhat since we moved to JupyterServer, tentatively closing now unless we hear of any other reports. |
Describe the bug
From: #107 (comment)
The following error happens in runtime:
Release version(s) and/or repository branch(es) affected?
master
Steps to reproduce the bug
Run some workflows for a while, and switch views in the UI. Eventually this errors pops in the console output.
Expected behavior
No errors.
Screenshots
Additional context
@dwsutherland commented:
Pull requests welcome!
This is an Open Source project - please consider contributing a bug fix
yourself (please read
CONTRIBUTING.md
before starting any work though).The text was updated successfully, but these errors were encountered: