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

Re: [Condor-users] Disabling the restarting of jobs



Hi Folks,

By way of followup, these suggestions have produced the desired behavior.

For reference, by setting the class ad in the submit file:

+DoNotRestartJob = TRUE

the following expressions produce the desired behavior that vacated jobs do not subsequently restart, while all other jobs do restart as usual:

#-----------------------------------------------------------------
#
# Allow users to specifiy that they don't want jobs to restart,
#  Using a value "DoNotRestartJob = TRUE"
#
#-----------------------------------------------------------------
SHOULD_NOT_RESTART_TRIGGER = ( DoNotRestartJob =?= TRUE ) && \
                             ( $ (NumJobStarts) > 0     ) && \
                             ( $(JobStatus) == 1 )
APPEND_REQUIREMENTS = ( DoNotRestartJob =!= TRUE ) || ( NumJobStarts =?= 0 ) || ( NumJobStarts =?= Undefined )

SYSTEM_PERIODIC_HOLD = $(SYSTEM_PERIODIC_HOLD) || ( $ (SHOULD_NOT_RESTART_TRIGGER) )


Thanks again,
rob


On Feb 29, 2008, at 1:17 PM, Dan Bradley wrote:





Robert E. Parrott wrote:

OK one more question:

With the requirements expression, how might one put this into a
config file, so the user could add an expression like

"+DoNotRestartJob = TRUE"

to their submit file?

Clearly I can add

SHOULD_NOT_RESTART_TRIGGER = ( $(DoNotRestartJob) =?= TRUE ) &&  ( $
(NumJobStarts) > 0 ) && ( $(JobStatus) == 1 )
SYSTEM_PERIODIC_HOLD = $(SYSTEM_PERIODIC_HOLD) || (  $
(SHOULD_NOT_RESTART_TRIGGER) )



You don't want to refer to DoNotRestartJob as a configuration file
macro, because it is a job attribute, so do not put $() around it.

But how do I add the requirements line to the central config file for
general use?



You can use APPEND_REQUIREMENTS in the config file.

--Dan

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/

==========================
Robert E. Parrott, Ph.D. (Phys. '06)
Associate Director, Grid and
        Supercomputing Platforms
Project Manager, CrimsonGrid Initiative
Harvard University Sch. of Eng. and App. Sci.
Maxwell-Dworkin  211,
33 Oxford St.
Cambridge, MA 02138
(617)-495-5045