Skip to content

Commit 887aeb7

Browse files
martinRenouSteven Silvester
authored andcommitted
Shutdown kernels on api/shutdown
1 parent 7574898 commit 887aeb7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jupyter_server/services/shutdown.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
class ShutdownHandler(JupyterHandler):
1010
@web.authenticated
11-
def post(self):
11+
async def post(self):
1212
self.log.info("Shutting down on /api/shutdown request.")
13+
14+
await self.kernel_manager.shutdown_all()
15+
1316
ioloop.IOLoop.current().stop()
1417

1518

0 commit comments

Comments
 (0)