[IPython-dev] ipcluster pbs gives no attribute 'job_id'

Brian Granger ellisonbg.net@gmail....
Sun Mar 22 23:43:13 CDT 2009


Have you tried to submit a regular job using pbs without ipcluster.  I
just want to know that your pbs is setup correctly.

The self.job_id attribute is set in reponse to the PBS job being
submitted.  Thus, if it hangs and the job_id has not been set when you
try to kil it, that means that something went wrong with the
submission.  Because of this, I would first make sure that you can
submit a basic job using PBS.  Then take that PBS script and use it to
make a template for ipcluster.

Cheers,

Brian

On Sun, Mar 22, 2009 at 1:19 AM, Ondrej Certik <ondrej@certik.cz> wrote:
> Hi,
>
> I am trying to figure out how the pbs works, so I started on my laptop:
>
> $ ipcluster pbs -n 2 --pbs-script=pbs.template
> 2009-03-22 01:08:50-0700 [-] Log opened.
> 2009-03-22 01:08:50-0700 [-] Process ['ipcontroller',
> '--logfile=/home/ondra/.ipython/log/ipcontroller'] has started with
> pid=5404
>
>
>
> and nothing more happened. So I wanted to stop with with CTRL-C, but I got:
>
> ^C2009-03-22 01:09:36-0700 [-] Stopping pbs cluster
> 2009-03-22 01:09:36-0700 [-] Unexpected error in main loop.
> 2009-03-22 01:09:36-0700 [-] Unhandled Error
>        Traceback (most recent call last):
>          File "/home/ondra/lib/bin/ipcluster", line 21, in <module>
>            ipcluster.main()
>          File "/home/ondra/lib/lib/python/IPython/kernel/scripts/ipcluster.py",
> line 724, in main
>            reactor.run()
>          File "/usr/lib/python2.5/site-packages/twisted/internet/base.py",
> line 1128, in run
>            self.mainLoop()
>        --- <exception caught here> ---
>          File "/usr/lib/python2.5/site-packages/twisted/internet/base.py",
> line 1140, in mainLoop
>            self.doIteration(t)
>          File "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py",
> line 104, in doSelect
>            [], timeout)
>          File "/home/ondra/lib/lib/python/IPython/kernel/scripts/ipcluster.py",
> line 572, in shutdown
>            d = pbs_set.kill()
>          File "/home/ondra/lib/lib/python/IPython/kernel/scripts/ipcluster.py",
> line 315, in kill
>            [self.job_id],env=os.environ)
>        exceptions.AttributeError: 'PBSEngineSet' object has no attribute 'job_id'
>
>
> and it keeps running. So it's unstoppable. :) I had to kill it with kill.
>
> Ondrej
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>


More information about the IPython-dev mailing list