Skip to content

Commit 097e24a

Browse files
author
jizhongsheng
committed
update last_activity when pty_read
1 parent 16d481f commit 097e24a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jupyter_server_terminals/terminalmanager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,6 @@ async def _cull_inactive_terminal(self, name):
164164
"Culling terminal '%s' due to %s seconds of inactivity.", name, inactivity
165165
)
166166
await self.terminate(name, force=True)
167+
168+
def pre_pty_read_hook(self, ptywclients):
169+
ptywclients.last_activity = utcnow()

0 commit comments

Comments
 (0)