[BUG]: Jobs fail with new condor_submit_dag changes #233
2 changed files with 5 additions and 2 deletions
1
docs/changes/newsfragments/233.bugfix
Normal file
1
docs/changes/newsfragments/233.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Adapt ``junifer queue`` to properly use HTCondor >=10.4.0 ``condor_submit_dag`` by `Fede Raimondo`_ and `Synchon Mandal`_
|
||||||
|
|
@ -532,10 +532,12 @@ def _queue_condor(
|
||||||
# Submit job(s)
|
# Submit job(s)
|
||||||
if submit is True:
|
if submit is True:
|
||||||
logger.info("Submitting HTCondor job")
|
logger.info("Submitting HTCondor job")
|
||||||
subprocess.run(["condor_submit_dag", dag_fname])
|
subprocess.run(
|
||||||
|
["condor_submit_dag", "-include_env", "HOME", dag_fname]
|
||||||
|
)
|
||||||
logger.info("HTCondor job submitted")
|
logger.info("HTCondor job submitted")
|
||||||
else:
|
else:
|
||||||
cmd = f"condor_submit_dag {dag_fname.absolute()!s}"
|
cmd = f"condor_submit_dag -include_env 'HOME' {dag_fname.absolute()!s}"
|
||||||
logger.info(
|
logger.info(
|
||||||
f"HTCondor job files created, to submit the job, run `{cmd}`"
|
f"HTCondor job files created, to submit the job, run `{cmd}`"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue