Skip to content

Commit 75a4da9

Browse files
Merge pull request #701 from MetRonnie/tutorial
Tutorial improvements/fixes
2 parents fbffc11 + b12adac commit 75a4da9

File tree

3 files changed

+37
-21
lines changed

3 files changed

+37
-21
lines changed

src/dictionaries/words

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ packjob
9393
parameterization
9494
parameterize
9595
parameterized
96+
parentless
9697
passX
9798
passphrase
9899
passwordless
@@ -167,6 +168,7 @@ subcommands
167168
subdir
168169
subdirectories
169170
subdirectory
171+
subprocess
170172
subprocesses
171173
subshell
172174
subshelled

src/tutorial/runtime/runtime-configuration.rst

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,22 @@ Start, Stop, Restart
378378
cylc install
379379
380380
Open a user interface (:ref:`tutorial.tui` or :ref:`tutorial.gui`) to view
381-
your workflow.
381+
your workflow. Run the workflow either from the UI or command line.
382382

383-
Run the workflow either by pressing the play button in the Cylc UI or by
384-
running the command:
383+
.. spoiler:: Hint hint
385384

386-
.. code-block:: bash
385+
.. code-block:: bash
386+
387+
cylc tui runtime-tutorial
388+
# or
389+
cylc gui # If you haven't already got an instance running.
387390
388-
cylc play runtime-tutorial
391+
Run the workflow either by:
392+
393+
* GUI: selecting the runtime-tutorial workflow in the sidebar and
394+
pressing the play button.
395+
* Tui: pressing enter on the workflow and selecting "play".
396+
* Command line: running ``cylc play runtime-tutorial``.
389397

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

441+
Now that all the tasks have runtime sections, remove
442+
:cylc:conf:`[scheduler]allow implicit tasks`:
443+
444+
.. code-block:: diff
445+
446+
[scheduler]
447+
UTC mode = True
448+
- allow implicit tasks = True # TODO: remove at end of exercise
449+
450+
Removing this ensures that any tasks in the graph without a corresponding
451+
runtime section will cause validation to fail (e.g. due to a typo).
452+
433453
Check the :cylc:conf:`flow.cylc` file is valid by running the command:
434454

435455
.. code-block:: bash
436456
437457
cylc validate .
438-
cylc install
439458
440-
.. TODO: Add advice on what to do if the command fails.
459+
Now install a new run of the workflow:
441460

442-
#. **Run The Workflow.**
461+
.. code-block:: bash
443462
444-
Open a user interface (:ref:`tutorial.tui` or :ref:`tutorial.gui`) to view
445-
your workflow.
463+
cylc install
446464
447-
.. spoiler:: Hint hint
465+
.. TODO: Add advice on what to do if the command fails.
448466
449-
.. code-block:: bash
467+
#. **Run The Workflow.**
450468

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

455-
Run the workflow either by:
472+
.. tip::
456473

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

462476
#. **View The Forecast Summary.**
463477

src/user-guide/running-workflows/scheduler-log-files.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The information logged here includes:
1111
- Event timestamps, at the start of each line
1212
- Workflow server host, port and process ID
1313
- Workflow initial and final cycle points
14-
- Workflow start type (i.e. cold start, warn start, restart)
14+
- Workflow (re)start number (1 for the first play, 2 or more for restarts)
1515
- Task events (task started, succeeded, failed, etc.)
1616
- Workflow stalled warnings.
1717
- Client commands (e.g. ``cylc hold``)

0 commit comments

Comments
 (0)