Skip to content

Commit

Permalink
Merge pull request #701 from MetRonnie/tutorial
Browse files Browse the repository at this point in the history
Tutorial improvements/fixes
  • Loading branch information
oliver-sanders authored Apr 5, 2024
2 parents fbffc11 + b12adac commit 75a4da9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 21 deletions.
2 changes: 2 additions & 0 deletions src/dictionaries/words
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ packjob
parameterization
parameterize
parameterized
parentless
passX
passphrase
passwordless
Expand Down Expand Up @@ -167,6 +168,7 @@ subcommands
subdir
subdirectories
subdirectory
subprocess
subprocesses
subshell
subshelled
Expand Down
54 changes: 34 additions & 20 deletions src/tutorial/runtime/runtime-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,22 @@ Start, Stop, Restart
cylc install
Open a user interface (:ref:`tutorial.tui` or :ref:`tutorial.gui`) to view
your workflow.
your workflow. Run the workflow either from the UI or command line.

Run the workflow either by pressing the play button in the Cylc UI or by
running the command:
.. spoiler:: Hint hint

.. code-block:: bash
.. code-block:: bash
cylc tui runtime-tutorial
# or
cylc gui # If you haven't already got an instance running.
cylc play runtime-tutorial
Run the workflow either by:

* GUI: selecting the runtime-tutorial workflow in the sidebar and
pressing the play button.
* Tui: pressing enter on the workflow and selecting "play".
* Command line: running ``cylc play runtime-tutorial``.

If all goes well the workflow will startup and the tasks will run and
succeed. Note that the tasks which do not have a ``[runtime]`` section
Expand Down Expand Up @@ -430,34 +438,40 @@ Start, Stop, Restart
:term:`run directory`. Copy the code in the ``runtime`` file to the
bottom of the :cylc:conf:`flow.cylc` file.

Now that all the tasks have runtime sections, remove
:cylc:conf:`[scheduler]allow implicit tasks`:

.. code-block:: diff
[scheduler]
UTC mode = True
- allow implicit tasks = True # TODO: remove at end of exercise
Removing this ensures that any tasks in the graph without a corresponding
runtime section will cause validation to fail (e.g. due to a typo).

Check the :cylc:conf:`flow.cylc` file is valid by running the command:

.. code-block:: bash
cylc validate .
cylc install
.. TODO: Add advice on what to do if the command fails.
Now install a new run of the workflow:

#. **Run The Workflow.**
.. code-block:: bash
Open a user interface (:ref:`tutorial.tui` or :ref:`tutorial.gui`) to view
your workflow.
cylc install
.. spoiler:: Hint hint
.. TODO: Add advice on what to do if the command fails.
.. code-block:: bash
#. **Run The Workflow.**

cylc tui runtime-tutorial
# or
cylc gui # If you haven't already got an instance running.
Open a user interface (:ref:`tutorial.tui` or :ref:`tutorial.gui`) and
run the workflow.

Run the workflow either by:
.. tip::

* Pressing the play button in the Cylc GUI. Then, ensuring that
"Cold Start" is selected within the dialogue window, pressing the
"Start" button.
* Running the command ``cylc play runtime-tutorial``.
Make sure you play the latest run that was newly installed.

#. **View The Forecast Summary.**

Expand Down
2 changes: 1 addition & 1 deletion src/user-guide/running-workflows/scheduler-log-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The information logged here includes:
- Event timestamps, at the start of each line
- Workflow server host, port and process ID
- Workflow initial and final cycle points
- Workflow start type (i.e. cold start, warn start, restart)
- Workflow (re)start number (1 for the first play, 2 or more for restarts)
- Task events (task started, succeeded, failed, etc.)
- Workflow stalled warnings.
- Client commands (e.g. ``cylc hold``)
Expand Down

0 comments on commit 75a4da9

Please sign in to comment.