[IPython-dev] KernelRestarter infinite loop
Ruslan Korniichuk
paad.ruslan.korniichuk at gmail.com
Thu Jun 4 11:04:39 EDT 2015
Hi all,
We are working on writing the *rk* administration utility (home page:
https://github.com/korniichuk/rk).
If the *rkscript* runs LESS than 3 seconds and kill itself
(sys.exit(1)),- *jupyter
notebook *working GOOD:
KernelRestarter: restarting kernel (*1/5*)
...
KernelRestarter: restarting kernel (*4/5*)
But, if the *rkscript* runs LONGER than 3 seconds and kill itself
(sys.exit(1)),- jupyter notebook working BAD (infinite loop):
KernelRestarter: restarting kernel (*1/5*)
KernelRestarter: restarting kernel (*1/5*)
...
Variable *time_to_dead* = 3 sec (kernel heartbeat interval in seconds) in
the *restarter.py* file.
*How we can change heartbeat interval or do something to GOOD working of
sys.exit(1), after the third second?*
It is important for us, because we need to check a remote machine
availability (ping), to check SSH login w/o password, to responsive to the
excepts.
---
Best regards,
Ruslan Korniichuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150604/9ad01148/attachment.html>
More information about the IPython-dev
mailing list