[IPython-dev] ipython1 kill()

Brian Granger ellisonbg.net at gmail.com
Thu Oct 18 18:31:13 EDT 2007

The engines cannot be killed when they are busy.  The reason is that
you can't send a signal over the network.  To really do a hard kill
you need to send a signal (using kill, etc.) and for that you simply
have to log into the machine running the engine or use some sort of
cluster management software to kill the process.  We do have long term
plans on adding some of this type of stuff to IPython1 itself, but we
are not there yet.

Let me know if you have any other questions.


On 10/18/07, Vitaliyi <imgrey at gmail.com> wrote:
> Good Day
> How to kill the running task on engine ? I was trying this :
> """
> import ipython1.kernel.api as kernel
> rc = kernel.RemoteController(('',10105))
> rc.getIDs() #[0]
> rc.execute(0, 'import time; time.sleep(1000)')
> rc.killall()
> rc.queueStatusAll() # <Queue Status List>; Engine: 0; Pending:
> "execute('import time; time.sleep(1000)')"
> rc.killAll() # <-- Hangs
> rc.queueStatusAll() #<Queue Status List>; Engine: 0; Pending:
> "execute('import time; time.sleep(1000)')"; Command: 'kill()'
> """
> Thanks
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev

More information about the IPython-dev mailing list