[BUG]: Jobs fail with new condor_submit_dag changes #233

Merged
synchon merged 2 commits from fix/htcondor-submit-fix into main 2023-07-27 10:00:30 +00:00
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1 @@
Adapt ``junifer queue`` to properly use HTCondor >=10.4.0 ``condor_submit_dag`` by `Fede Raimondo`_ and `Synchon Mandal`_

View file

@ -532,10 +532,12 @@ def _queue_condor(
# Submit job(s)
if submit is True:
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")
else:
cmd = f"condor_submit_dag {dag_fname.absolute()!s}"
cmd = f"condor_submit_dag -include_env 'HOME' {dag_fname.absolute()!s}"
logger.info(
f"HTCondor job files created, to submit the job, run `{cmd}`"
)