[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] STARTD_ATTRS question
- Date: Mon, 25 Oct 2010 20:24:03 -0400
- From: Ian Chesal <ichesal@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [Condor-users] STARTD_ATTRS question
On Mon, Oct 25, 2010 at 6:42 PM, Mag Gam <magawake@xxxxxxxxx>
I was wondering if this is possible to do,
if [[ -d /home/archive ]]; then
Years ago I was wondering how well Tcl would fit in to the config scheme used by Condor. Precisely so you could code in logic like this. Didn't really get much traction with the idea and the Condor Team did add in a fair bit of ClassAd logic to the config file parser.
STARTD_ATTRS = archive
Basically, it would be useful to do shell logic.
So the only way I can see to do this now would be to use a Startd Cron job that called condor_config_val to set the value. You can pre-set the variable with:
ARCHIVE_AVAILABLE = False
STARTD_ATTRS = ARCHIVE_AVAILABLE
And then have the cron job correct the value based on reality for the machine when it runs. Just set the period to something long like every 24h.