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

[Condor-users] Using a machine ad value in a deferral_time line?



I have, on every machine in my pool, an integer attribute pair that
defines a "preemption window":

	ALTERA_EARLY_PREEMPTION_TIME = 300

I'd like some of my jobs to wait for this preemption window to close
before they start actually doing any work. The deferral_time setting in
a submit ticket looks like a nice, generic way to pause the start of a
job until the premption window closes. I could just add:

	deferral_time = (CurrentTime + 300)

But I like to use the attributes whenever possible. Assuming I'm
advertising ALTERA_EARLY_PREEMPTION_TIME in the machine's classad by
adding it to STARTD_EXPRS, can I use TARGET in this setting to reference
the machine's ALTERA_EARLY_PREEMPTION_TIME value? So:

	deferral_time = (CurrentTime +
TARGET.ALTERA_EARLY_PREEMPTION_TIME + 1)

- Ian


Confidentiality Notice.  This message may contain information that is confidential or otherwise protected from disclosure.
If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, 
or copying of this message, or any attachments, is strictly prohibited.  If you have received this message in error, 
please advise the sender by reply e-mail, and delete the message and any attachments.  Thank you.