diff --git a/docs/changes/newsfragments/233.bugfix b/docs/changes/newsfragments/233.bugfix new file mode 100644 index 0000000000..167b774fc5 --- /dev/null +++ b/docs/changes/newsfragments/233.bugfix @@ -0,0 +1 @@ +Adapt ``junifer queue`` to properly use HTCondor >=10.4.0 ``condor_submit_dag`` by `Fede Raimondo`_ and `Synchon Mandal`_ diff --git a/junifer/api/functions.py b/junifer/api/functions.py index f49a732409..37e94ad2d2 100644 --- a/junifer/api/functions.py +++ b/junifer/api/functions.py @@ -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}`" )