Skip to content

Commit

Permalink
Clean up activity recording (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Mar 13, 2022
1 parent 140d52e commit 5d962d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_server/services/kernels/kernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,11 @@ def record_activity(msg_list):
self.last_kernel_activity = kernel.last_activity = utcnow()

idents, fed_msg_list = session.feed_identities(msg_list)
msg = session.deserialize(fed_msg_list)
msg = session.deserialize(fed_msg_list, content=False)

msg_type = msg["header"]["msg_type"]
if msg_type == "status":
msg = session.deserialize(fed_msg_list)
kernel.execution_state = msg["content"]["execution_state"]
self.log.debug(
"activity on %s: %s (%s)",
Expand Down

0 comments on commit 5d962d7

Please sign in to comment.