jupyter-server / enterprise_gateway

A lightweight, multi-tenant, scalable and secure gateway that enables Jupyter Notebooks to share resources across distributed clusters such as Apache Spark, Kubernetes and others.
https://jupyter-enterprise-gateway.readthedocs.io/en/latest/
Other
623 stars 222 forks source link

Dependency: jupyter_client can't be 6.2.0 #1387

Open fm2022aa opened 4 months ago

fm2022aa commented 4 months ago

I used jupyter_client 6.2.0 to build eg. version. When I shutdown kernel, it kill eg self. log: [D 2024-07-10 09:18:07.700 EnterpriseGatewayApp] activity on 5f60b0a1-c3e1-4510-b327-e2abe90be152: status (busy) [D 2024-07-10 09:18:07.703 EnterpriseGatewayApp] activity on 5f60b0a1-c3e1-4510-b327-e2abe90be152: status (idle) [D 2024-07-10 09:18:12.228 EnterpriseGatewayApp] Clearing buffer for 5f60b0a1-c3e1-4510-b327-e2abe90be152 [I 2024-07-10 09:18:12.228 EnterpriseGatewayApp] Kernel shutdown: 5f60b0a1-c3e1-4510-b327-e2abe90be152 [I 2024-07-10 09:18:12.228 EnterpriseGatewayApp] Interrupted... [I 2024-07-10 09:18:12.229 EnterpriseGatewayApp] Jupyter Enterprise Gateway is shutting down all running kernels Traceback (most recent call last): File "/opt/conda/bin/jupyter-enterprisegateway", line 8, in <module> sys.exit(launch_instance()) ^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/jupyter_core/application.py", line 283, in launch_instance super().launch_instance(argv=argv, **kwargs) File "/opt/conda/lib/python3.11/site-packages/traitlets/config/application.py", line 1075, in launch_instance app.start() File "/opt/conda/lib/python3.11/site-packages/enterprise_gateway/enterprisegatewayapp.py", line 341, in start self.shutdown() File "/opt/conda/lib/python3.11/site-packages/enterprise_gateway/enterprisegatewayapp.py", line 349, in shutdown asyncio.get_event_loop().run_until_complete( File "/opt/conda/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/opt/conda/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/opt/conda/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once handle._run() File "/opt/conda/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/opt/conda/lib/python3.11/site-packages/tornado/web.py", line 2438, in <lambda> fut.add_done_callback(lambda f: f.result()) ^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute result = await result ^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/jupyter_server/services/kernels/handlers.py", line 82, in delete await ensure_async(km.shutdown_kernel(kernel_id)) File "/opt/conda/lib/python3.11/site-packages/jupyter_server/utils.py", line 182, in ensure_async result = await obj ^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/enterprise_gateway/services/kernels/remotemanager.py", line 253, in shutdown_kernel await super().shutdown_kernel(kernel_id, now, restart) File "/opt/conda/lib/python3.11/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 671, in shutdown_kernel return await self.pinned_superclass.shutdown_kernel( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/jupyter_client/multikernelmanager.py", line 252, in _async_shutdown_kernel await ensure_async(km.shutdown_kernel(now, restart)) File "/opt/conda/lib/python3.11/site-packages/jupyter_client/utils.py", line 33, in ensure_async return await obj ^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/jupyter_client/manager.py", line 469, in _async_shutdown_kernel await ensure_async(self.interrupt_kernel()) File "/opt/conda/lib/python3.11/site-packages/jupyter_client/utils.py", line 33, in ensure_async return await obj ^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/jupyter_client/manager.py", line 640, in _async_interrupt_kernel await self._async_signal_kernel(signal.SIGINT) File "/opt/conda/lib/python3.11/site-packages/jupyter_client/manager.py", line 663, in _async_signal_kernel os.killpg(pgid, signum) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^ KeyboardInterrupt