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

Re: [HTCondor-users] "include command : " in configuration files

Dear Michael, 

many thanks for your reply!

Am 03.11.2017 um 20:05 schrieb Michael Pelletier:
> Oliver,
> It does indeed run every time the config is read, including when condor_submit or condor_config_val are run by any user.
> This caused some issues with condor_gpu_discovery in an earlier version which emitted a CUDA error which tripped up the configuration. I don't recall my support ticket number on that, but it should show up in the recent release notes.
> The workaround I did is to set up any config-included script to cache the persistent results and display the cached value if it's fresh enough.
This is a very good idea to allow to define the caching period ourselves! 
I'll go with a similar solution, then, once the script gets more complicated (as of now, it just does a "stat()" and a "cat" of a file). 

Since it appears this is not only affecting me, but also others, 
it might be a good idea though (for the long run) to have something like (with maxage 1200 specifying a 20 minute caching):

include ifexist command into $(LOCAL_DIR)/stuff.config maxage 1200 : perl $(LOCAL_DIR)/stuff.pl

in HTCondor (which will do just the same we are right now doing with external workarounds). 
Since HTCondor has to check for the existence of the cache-file in any case, this should be very straightforward to implement in the code. 

Is this mailing list also the suitable place to collect such ideas / feature requests? 

Cheers and many thanks,

> 	-Michael Pelletier.
>> -----Original Message-----
>> From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf
>> Of Oliver Freyermuth
>> Sent: Friday, November 03, 2017 1:05 PM
>> To: htcondor-users <htcondor-users@xxxxxxxxxxx>
>> Subject: [External] [HTCondor-users] "include command : " in configuration
>> files
>> Dear HTCondor experts,
>> I am now using a statement like:
>> include command : /some/shell/script
>> (i.e. without cache) in a configuration file to set a variable which is
>> later used to define SINGULARITY_IMAGE_EXPR, i.e. the images used for
>> jobs.
>> We want these to be updated according to an external file stored on CVMFS,
>> which is edited on a different host, so the "polling" is actually
>> necessary.
>> I am wondering, though, how often "/some/shell/script" is actually called.
>> The documentation only states:
>> "If the into option is not used, the command line will be executed every
>> time the configuration file is referenced. "
>> From this, I would have guessed this happens as often as a daemon is
>> restarted (in this case, the condor_startd).
>> However, it seems that this happens more often - does it happen each time
>> *any* configuration parameter is queried?
>> Is there a regular, minimal refresh interval?
>> Many thanks and all the best,
>> 	Oliver
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature