Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Partial re-submission of cluster jobs
- Date: Fri, 18 Jun 2010 13:21:12 -0500
- From: Daniel Forrest <dan.forrest@xxxxxxxxxxxxx>
- Subject: Re: [Condor-users] Partial re-submission of cluster jobs
Douglas Clayton wrote:
> George,
>
> You can definitely do logical constraints. First, you have to quote the
> whole argument because | means something special to the shell. Second, you
> have to use the logical || operator (the bitwise | doesn't do what you
> want). This should work:
>
> condor_rm -constraint "ID!=5231.1||ID!=5231.6|| ID!=5231.15!
> ||ID!=5231.50||ID!=5231.300"
And you really want to use "&&" and not "||" because otherwise the
expression will always evaluate to TRUE. Of course this does nothing
to keep you from deleting every other job cluster in the queue.
You could use multiple "-constraint" arguments (abbreviation "-c")
which are implicitly AND-ed together:
condor_rm -c ClusterId==5231 -c ProcId!=1 -c ProcId!=6 -c ProcId!=15 -c ProcId!=50 -c ProcId!=300
Which avoids the need to define "ID" and does what I think you want.
Finally, before running "condor_rm", you should run "condor_q":
condor_q -c ClusterId==5231 -c ProcId!=1 -c ProcId!=6 -c ProcId!=15 -c ProcId!=50 -c ProcId!=300
To first see the exact list of jobs that will be removed just in case
you made a mistake.
--
Dan