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

Re: [Condor-users] STARTD_ATTRS question



Thanks.  After reading the manual I think thats the only way to go.
Instead of 24 hours I will use 5 mins :-)



On Mon, Oct 25, 2010 at 8:24 PM, Ian Chesal <ichesal@xxxxxxxxxxxxxxxxxx> wrote:
> On Mon, Oct 25, 2010 at 6:42 PM, Mag Gam <magawake@xxxxxxxxx> wrote:
>>
>> I was wondering if this is possible to do,
>>
>> if [[ -d /home/archive ]]; then
>>  archive="yes"
>> else
>>  archive="no"
>> fi
>
> 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.
> Regards,
> - Ian
> _______________________________________________
> 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/
>
>