Skip to content

Commit

Permalink
Fix to add PID to local log names. (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Di Natale authored Apr 3, 2020
1 parent 42eb05d commit aeaf051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maestrowf/interfaces/script/localscriptadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def submit(self, step, path, cwd, job_map=None, env=None):
output, err = p.communicate()
retcode = p.wait()

o_path = os.path.join(cwd, "{}.out".format(step.name))
e_path = os.path.join(cwd, "{}.err".format(step.name))
o_path = os.path.join(cwd, "{}.{}.out".format(step.name, pid))
e_path = os.path.join(cwd, "{}.{}.err".format(step.name, pid))

with open(o_path, "w") as out:
out.write(output)
Expand Down

0 comments on commit aeaf051

Please sign in to comment.