[IPython-dev] ipython1 kill()
Thu Oct 18 17:31:13 CDT 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 <firstname.lastname@example.org> wrote:
> Good Day
> How to kill the running task on engine ? I was trying this :
> import ipython1.kernel.api as kernel
> rc = kernel.RemoteController(('127.0.0.1',10105))
> rc.getIDs() #
> rc.execute(0, 'import time; time.sleep(1000)')
> 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()'
> IPython-dev mailing list
More information about the IPython-dev