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

Fix shutdown and cleanup behavior #772

Merged
merged 22 commits into from
Apr 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix import
  • Loading branch information
blink1073 committed Apr 24, 2022
commit db270dc1a7e36325196d034cdc84c7466f75c8fa
4 changes: 2 additions & 2 deletions jupyter_client/multikernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async def _async_shutdown_kernel(
await task
km = self.get_kernel(kernel_id)
await t.cast(asyncio.Future, km.ready)
except asyncio.exceptions.CancelledError:
except asyncio.CancelledError:
pass
except Exception:
self.remove_kernel(kernel_id)
Expand Down Expand Up @@ -302,7 +302,7 @@ async def _async_shutdown_all(self, now: bool = False) -> None:
for km in kms:
try:
await km.ready
except asyncio.exceptions.CancelledError:
except asyncio.CancelledError:
self._pending_kernels[km.kernel_id].cancel()
except Exception:
# Will have been logged in _add_kernel_when_ready
Expand Down