[torqueusers] qdel all
Naveed Near-Ansari
naveed at caltech.edu
Thu Jun 4 10:50:12 MDT 2009
though these are very rough, you could also use a simple script like (if
using maui):
#!/bin/bash
for i in `showq | grep $1 | cut -f1 -d " "`
do echo killing job $i
qdel $i
done
call it kill_jobs and call it with the user, as in :
kill_job username
hmm i guess a qstat version would be almost identical:
#!/bin/bash
for i in `qstat | grep $1 | cut -f1 -d " "`
do echo killing job $i
echo qdel $i
done
That said, it would be nice to have it in qdel natively. you could
expand a script like this with options for things like killing only a
specific users running or pending jobs, etc.
Naveed
On Thu, 2009-06-04 at 09:25 -0700, David Sheen wrote:
> Hi,
>
> We have something in place that will delete every process a user is
> running on a node; we have problems with Q-Chem leaving phantom
> processes on slave nodes. The script is:
>
> ps -fU $1 > psfile
> awk "{if (\$1 == \"$1\" ) print \$2}" psfile > killfile
> kill -9 `cat killfile`
>
> I imagine you could use something similar with the output of qstat.
>
> Dave
>
> On Thu, Jun 4, 2009 at 8:22 AM, Steve Young <chemadm at hamilton.edu>
> wrote:
> Hi,
> I would like to add it would be nice to be able to do
> something like
> qdel -u <username> or something of the sort that would allow
> me to
> remove all the jobs for a certain user in addition to as Brock
> suggests, a way for each user to remove all of their own jobs.
> Thanks,
>
> -Steve
>
>
>
> On Jun 4, 2009, at 10:11 AM, Brock Palen wrote:
>
> > qdel all, from a non operator, tries to delete every job,
> not just
> > ones they own, and it prints out "Unauthorized request"
> >
> > We would like to use it for users who find they have a large
> number
> > of jobs to delete, but did not use job arrays, Currently we
> send
> > nasty shell scripts to people,
> >
> > could qdel all be turned into something a little more user
> friendly?
> >
> >
> > Brock Palen
> > www.umich.edu/~brockp
> > Center for Advanced Computing
> > brockp at umich.edu
> > (734)936-1985
> >
> >
> >
> > _______________________________________________
> > torqueusers mailing list
> > torqueusers at supercluster.org
> > http://www.supercluster.org/mailman/listinfo/torqueusers
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
More information about the torqueusers
mailing list