Skip to content

Commit b98c9f8

Browse files
authored
Merge pull request jupyter-server#18 from Quansight/fix/deadlock
Don't throw timeout exception
2 parents c24ad0c + 38e4a50 commit b98c9f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyterlab_kernel_usage/handlers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ async def get(self, matched_part=None, *args, **kwargs):
4343
timeout_ms = int(1000 * timeout)
4444
events = dict(poller.poll(timeout_ms))
4545
if not events:
46-
raise TimeoutError("Timeout waiting for response")
46+
self.write(json.dumps({}))
47+
break
4748
if control_socket not in events:
4849
continue
4950
res = await client.control_channel.get_msg(timeout=0)

0 commit comments

Comments
 (0)