Skip to content

Commit

Permalink
Merge pull request #233 from juaml/fix/htcondor-submit-fix
Browse files Browse the repository at this point in the history
[BUG]: Jobs fail with new `condor_submit_dag` changes
  • Loading branch information
synchon authored Jul 27, 2023
2 parents 550e620 + 98c1c73 commit dc23879
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changes/newsfragments/233.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adapt ``junifer queue`` to properly use HTCondor >=10.4.0 ``condor_submit_dag`` by `Fede Raimondo`_ and `Synchon Mandal`_
6 changes: 4 additions & 2 deletions junifer/api/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}`"
)
Expand Down

0 comments on commit dc23879

Please sign in to comment.