Skip to content

Commit

Permalink
Move submit command to end of output. (#805)
Browse files Browse the repository at this point in the history
* Move submit command to end of output.

* Update change log.
  • Loading branch information
joaander authored Feb 2, 2024
1 parent eb67b3f commit 802ab8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ The numbers in brackets denote the related GitHub issue and/or pull request.
Version 0.27
============

[next] -- not yet released
--------------------------

Changed
+++++++

- Move "Submit command" comment to end of pretend output (#805).

[0.27.0] -- 2024-01-15
----------------------

Expand Down
2 changes: 1 addition & 1 deletion flow/scheduling/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ def _call_submit(submit_cmd, script, pretend):
"""
submit_cmd_string = " ".join(submit_cmd)
if pretend:
print(f"# Submit command: {submit_cmd_string}")
print(script)
print()
print(f"# Submit command: {submit_cmd_string}")
else:
with tempfile.NamedTemporaryFile() as tmp_submit_script:
tmp_submit_script.write(str(script).encode("utf-8"))
Expand Down

0 comments on commit 802ab8a

Please sign in to comment.