[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Removing Held jobs

Ian Cottam wrote:
 In my jobs I'd like any submission that goes to Hold be removed from the queue.
It looks like I should use (in my submit file or with a -append)

periodic_remove = ...

but I'm not sure what to put for the ...

To remove held jobs you could simply do:

  periodic_remove = JobStatus == 5

If you wanted to be a bit fancier, here is an example to remove jobs that have been on hold continuously for more than 2 days:

  periodic_remove = (((CurrentTime - EnteredCurrentStatus) >  \
                      (2*24*3600)) && JobStatus == 5)

So part of the magic above is knowing that JobStatus of 5 means "held"; I find the following web page helpful with these sorts of magic numerical constants:

hope this helps,

Any help much appreciated!

Ian Cottam
IT Manager
MIB & School of Materials &
School of Chemical Engineering and Analytical Science
IT Services, Faculty of Engineering and Physical Sciences
The John Garside Building (Room G.002)
The University of Manchester
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at:

Todd Tannenbaum                       University of Wisconsin-Madison
Center for High Throughput Computing  Department of Computer Sciences
tannenba@xxxxxxxxxxx                  1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132                 Madison, WI 53706-1685