[slurm-users] how to easily to obtain jobid for array jobs?
Michael Gutteridge
michael.gutteridge at gmail.com
Thu Oct 11 10:34:52 MDT 2018
There is also the SQUEUE_FORMAT environment variable. Set that in the
appropriate place (/etc/profile and such) to '%i %A (and whatever other
output you like)' and you should be good to go.
- Michael
On Thu, Oct 11, 2018 at 4:00 AM Loris Bennett <loris.bennett at fu-berlin.de>
wrote:
> Hi Daan,
>
> Daan van Rossum <d.r.vanrossum at gmx.de> writes:
>
> > Dear slurm-users,
> >
> > My users complain about not being able to cancel array jobs (on slurm
> 17.11.3).
> >
> > The problem is that squeue by default outputs the %i (job step id) for
> array jobs, which cannot be used in scancel. What /can/ be used is %A (job
> id). How can I tell users to easily find that number? There is certainly
> a better way to obtain the jobid than by translating between %i and %A
> using:
> >
> > # squeue -o '%i %A' | grep $jobstepid
> >
> > Is there a way to customize the default squeue output format?
> >
> > Thanks, Daan
> >
> > From the man page:
> > %i Job or job step id. In the case of job arrays,
> the
> > job ID format will be of the
> form
> > "<base_job_id>_<index>".
> >
> > %A Job id. This will have a unique value for each
> ele‐
> > ment of job arrays. (Valid for jobs only)
>
> You could always just use overwrite squeue with alias which you put it
> in /etc/profile.d or where ever you have your global setting, although
> this could also potentially cause some confusion.
>
> Cheers,
>
> Loris
>
> --
> Dr. Loris Bennett (Mr.)
> ZEDAT, Freie Universität Berlin Email loris.bennett at fu-berlin.de
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20181011/00444e17/attachment.html>
More information about the slurm-users
mailing list