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

Re: [HTCondor-users] STARTER_SCRATCH_DIR_VARS proposal



Expansion of the magic value of  #CoNdOrScRaTcHdIr# in the environment happens *after* STARTER_JOB_ENVIRONMENT is processed.  So you can configure the starter to insert environment variables into the job like this.

STARTER_JOB_ENVIRONMENT = MCR_CACHE_ROOT=#CoNdOrScRaTcHdIr#

-tj

-----Original Message-----
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Anderson, Stuart B.
Sent: Friday, August 11, 2023 5:49 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] STARTER_SCRATCH_DIR_VARS proposal


> On Aug 11, 2023, at 3:33 PM, Greg Thain via HTCondor-users <htcondor-users@xxxxxxxxxxx> wrote:
> 
> Note that we can do this in submit now with
> 
> 
> executable = something
> 
> environment = MCR_CACHE_ROOT=$$(CondorScratchDir)

Greg, very nice! I just found this in the manual under, "As a special case that only works within the submit file environement command", but please note the spelling error for the command name. And this the only occurrence of "CondorScratchDir" I can find in the manual so please consider promoting and unifying the name of the sandbox so it also ends up in the Index along with "_CONDOR_SCRATCH_DIR".


As for my proposal, the environment solution is simple enough for users (if they can find the name of the sandbox variable), so your call wether to also offer the option to admins to do this for their users with STARTER_SCRATCH_DIR_VARS.


Thanks.

--
Stuart Anderson
sba@xxxxxxxxxxx




_______________________________________________
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/