Skip to content

Commit

Permalink
Merge pull request #730 from wxtim/fix.728
Browse files Browse the repository at this point in the history
Make it clearer that set -euo pipefail is _only_ required in
  • Loading branch information
oliver-sanders committed May 10, 2024
2 parents 1fcb22c + e2ee3bf commit b6e9f27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/user-guide/task-implementation/job-scripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ Task messages are validated by:
.. autoclass:: cylc.flow.unicode_rules.TaskMessageValidator
:no-index:

.. _job-scripts.aborting-on-error:

Aborting Job Scripts on Error
-----------------------------

Expand Down
5 changes: 5 additions & 0 deletions src/workflow-design-guide/general-principles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ workflow and its tasks, all task scripts should:
Examples and more details `are available <https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/>`_
for the above three ``set`` commands.

Inline scripts (defined in the job-script section of the
workflow configuration) do not need to ``set -euo pipefail``:
It is already set as part of the
:ref:`job script's error handling <job-scripts.aborting-on-error>`.


Rose Apps
---------
Expand Down

0 comments on commit b6e9f27

Please sign in to comment.