Skip to content

Commit

Permalink
Applies workspace substitution to the restart command. (#219)
Browse files Browse the repository at this point in the history
Fixes #217 

* Sub in the new restart command.

* Addition of restart workspaces to sub.

* Fix for WORKSPACE substitutions into restart.

* Correction to override restart instead of cmd.
  • Loading branch information
Francesco Di Natale authored and FrankD412 committed May 28, 2022
1 parent 925447c commit 0316f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maestrowf/datastructures/core/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ def _stage(self, dag):
node = copy.deepcopy(node)
node.run["cmd"] = cmd
node.run["restart"] = r_cmd
LOGGER.debug("New cmd = %s", cmd)
LOGGER.debug("New restart = %s", r_cmd)
logger.debug("New cmd = %s", cmd)
logger.debug("New restart = %s", r_cmd)

dag.add_step(step, node, workspace, rlimit)

Expand Down

0 comments on commit 0316f78

Please sign in to comment.