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

[HTCondor-users] "if defined" fails for VARS from DAG

It seems as though VARS defined in a DAG get carried over into the node's job file, but don't make 'if defined' true. Here is a test case:

ÂÂÂ test.job:
ÂÂÂ executable = /usr/bin/echo
ÂÂÂ if defined A
ÂÂÂ ÂÂ arguments = "defined A=$(A)"
ÂÂÂ else
ÂÂÂ ÂÂ arguments = "undefined A=$(A)"
ÂÂÂ endif
ÂÂÂ output = test.out

ÂÂÂ test.dag:
ÂÂÂ VARS test A="42"
ÂÂÂ JOB test test.job

Now, 'condor_submit A=99 test.job' correctly results in 'defined A=99', whereas 'condor_submit_dag test.dag' results in 'undefined A=42'. This is unexpected: A is undefined, yet appears to have value 42.

Kind regards,

Marco van Zwetselaar
Kilimanjaro Clinical Research Institute
P.O. Box 2236 | Moshi, Kilimanjaro | Tanzania