Skip to content

Commit

Permalink
fix(htcondorcern): support multiline commands (#474)
Browse files Browse the repository at this point in the history
Closes #470
  • Loading branch information
mdonadoni committed Nov 21, 2024
1 parent 9cda591 commit eb07aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana_job_controller/htcondorcern_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _format_arguments(self):
# Take only the user's command, removes the change directory to workflow workspace
# added by RWE-Serial/Snakemake since HTCondor implementation does not need it.
# E.g. "cd /path/to/workspace ; user-command" -> "user-command"
base_cmd = " ".join(self.cmd.split()[3:])
base_cmd = self.cmd.split(maxsplit=3)[3]
if self.workflow.type_ == "snakemake":
# For Snakemake workflows, also remove the workspace path from
# `jobfinished` and `jobfailed` touch commands.
Expand Down

0 comments on commit eb07aa9

Please sign in to comment.