Skip to content

Commit

Permalink
Update notebook/services/kernels/handlers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Min RK <benjaminrk@gmail.com>
  • Loading branch information
SylvainCorlay and minrk authored Dec 16, 2020
1 parent 2c87813 commit 8e98711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebook/services/kernels/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def on_timeout():
def nudge(count):
count += 1
if not future.done():
self.log.debug("Nudging attempt %s or kernel %s" % (count, self.kernel_id))
log = self.log.warning if nudge_count % 10 == 0 else self.log.debug
log("Nudging attempt %s on kernel %s" % (nudge_count, self.kernel_id))
self.session.send(shell_channel, "kernel_info_request")
nudge_handle = loop.call_later(0.5, nudge, count)

Expand Down

0 comments on commit 8e98711

Please sign in to comment.