Skip to content

Commit

Permalink
job-submission: prettified cmd breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Sep 19, 2018
1 parent 16384ee commit c1f24f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions reana_workflow_engine_cwl/cwl_reana.py
Expand Up @@ -164,7 +164,6 @@ def add_volumes(self, pathmapper):

def create_task_msg(self, working_dir):
"""Create job message spec to be sent to REANA-Job-Controller."""
prettified_cmd = self.command_line[2]
job_name = self.name
docker_req, _ = self.get_requirement("DockerRequirement")
container = str(docker_req['dockerPull'])
Expand Down Expand Up @@ -250,13 +249,12 @@ def shouldquote(x):
wf_space_cmd += "; cp -r {0}/* {1}".format(
self.environment['HOME'], mounted_outdir)
wrapped_cmd = "/bin/sh -c {} ".format(pipes.quote(wf_space_cmd))

create_body = {
"experiment": "default",
"image": container,
"cmd": wrapped_cmd,
"workflow_workspace": working_dir,
"prettified_cmd": prettified_cmd,
"prettified_cmd": wrapped_cmd,
"job_name": job_name
}

Expand Down

0 comments on commit c1f24f9

Please sign in to comment.