-
Notifications
You must be signed in to change notification settings - Fork 283
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
Handle Warnings #760
Handle Warnings #760
Conversation
Downstream test failure is due to jupyterlab/maintainer-tools#74 |
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.
This looks good Steve - really nice to have such clean CI results!
Looking at the original attempts in #751, would it be possible to sneak in this particular change? I've run into this during race-condition testing on shutdown and it makes sense to silence the exception on shutdown that otherwise should be raised.
Good call, done! |
@@ -11,14 +11,14 @@ | |||
def run_sync(coro): | |||
def wrapped(*args, **kwargs): | |||
try: | |||
loop = asyncio.get_event_loop() | |||
loop = asyncio.get_running_loop() |
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.
This and only this line seem to be breaking some projects.
in particular https://github.com/Carreau/inplace_restarter.
It seem to be because asyncio.get_event_loop()
can return the current event loop even if it's not (yet) running.
I'm not sure what a proper fix coulc be.
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.
Thanks for the heads up, I put a workaround in 0a2c228
(#772)
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.
Thanks , I also fixed my project upstream, I'll try to have a look at #772
Reboot of #751 without any changes to the
KernelManager
.