Hi Andreas.
In very old versions of HTCondor, config variables could be $() expanded in submit files, I'm not sure this was ever intended behavior, but in any case it was causing unintended problems and so we changed condor_submit in version 8.4.7 so that $() expansion
in submit files will only expand submit variables and commands and not config variables.
That being said, It would not be hard to add constants like $(HOUR) into the table of build-in submit variables so that this particular trick would continue to work for you.
Please let me know if you want this and I will open a ticket for the work.
-tj
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Andreas Haupt <andreas.haupt@xxxxxxx>
Sent: Monday, May 27, 2024 3:12 AM To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx> Subject: [HTCondor-users] Usage of $(HOUR) in submit files Dear all,
some of our users noticed that with HTCondor-23 (23.0.10 in our case) variables like $(HOUR) are no longer usable in submit files: [wgs34] ~/projects/htcondor/jobs % grep Runtime job-simple-with-time.sdl +RequestRuntime = 10 * $(HOUR) [wgs34] ~/projects/htcondor/jobs % condor_submit job-simple-with-time.sdl Submitting job(s)ERROR: Parse error in _expression_: RequestRuntime = 10 * However, variable is still defined: [wgs34] ~/projects/htcondor/jobs % condor_config_val HOUR 3600 It still works / worked on submission hosts with HTC-10. Is this a regression? Or a documented behaviour? Thanks, Andreas -- | Andreas Haupt | E-Mail: andreas.haupt@xxxxxxx | DESY, Zeuthen | WWW: http://www.zeuthen.desy.de/~ahaupt | Platanenallee 6 | Phone: +49/33762/7-7359 | D-15738 Zeuthen | |