Skip to content

Commit dbf0933

Browse files
document workflow log files
1 parent 59c9f41 commit dbf0933

File tree

3 files changed

+138
-18
lines changed

3 files changed

+138
-18
lines changed

src/7-to-8/summary.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,36 @@ Scheduling Algorithm
236236
The scheduling algorithm has been changed, more information is available:
237237
:ref:`728.scheduling_algorithm`.
238238

239+
Log Files
240+
---------
241+
242+
The workflow log files have moved to new locations and some new files have been
243+
added. For information on the Cylc 8 log files, see
244+
:ref:`user-guide.log_files`.
245+
246+
.. list-table::
247+
248+
* - **Cylc 7** (and Rose 2019)
249+
- **Cylc 8**
250+
* - ``log/suite/log``
251+
- ``log/scheduler/log``
252+
* - ``log/suite/log.<time>``
253+
- ``log/scheduler/<start_number>-<type>-<file_number>.log``
254+
* - ``suite.rc.processed``
255+
- ``log/config/flow-processed.cylc``
256+
* - ``log/rose-suite-run.log``
257+
- ``log/install/<start_number>-install.log``
258+
259+
``log/remote-install/<start_number>-<type>-<platform>.log``
260+
* - ``log/rose-conf/<time>-run.conf``
261+
- ``log/config/<time>-rose-suite.conf``
262+
* - ``log/<time>-run.version``
263+
- ``log/version/uncommitted.diff``
264+
265+
``log/version/vcs.json``
266+
* - ``log/suiterc/<time>-run.rc``
267+
- ``log/config/<start_number>-<type>-<file_number>.cylc``
268+
239269
Other Changes
240270
-------------
241271

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

Lines changed: 107 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,112 @@
11
.. _Scheduler Logs:
2+
.. _user-guide.log_files:
23

3-
Scheduler Logs
4-
--------------
4+
Workflow Logs
5+
=============
6+
7+
Cylc produces a number of log files which record information about the
8+
wortkflow, how it was installed, what tasks have run, their outcomes and more.
9+
10+
11+
Log Files
12+
---------
13+
14+
Cylc log files are located in the workflow :term:`run directory`.
15+
16+
.. describe:: log/scheduler/
17+
18+
Contains the scheduler log files, these detail everything that a workflow
19+
did whilst it ran and are key to debugging issues.
20+
21+
Every time you start or restart a workflow a new log file is created in this
22+
location:
23+
24+
.. describe:: log/scheduler/<start_number>-<type>-<file_number>.log
25+
26+
For more information on this file, see :ref:`log_files.scheduler_log`.
27+
28+
.. describe:: log/config/
29+
30+
Contains a record of the workflow configuration files:
31+
32+
.. describe:: log/config/<start_number>-<type>-<file_number>.cylc
33+
34+
The parsed contents of the ``flow.cylc`` (or ``suite.rc``) file from
35+
each start, restart or reload of the workflow.
36+
37+
.. describe:: log/config/flow-processed.cylc
38+
39+
The un-parsed contents of the ``flow.cylc`` (or ``suite.rc``) file that
40+
the workflow was most recently started or restarted from. This file has
41+
not been parsed by Cylc so is still in the definition order, however,
42+
Jinja2 process has been performed making it useful for debugging Jinja2
43+
issues.
44+
45+
.. describe:: log/config/<time>-rose-suite.conf
46+
47+
The parsed contents of the ``rose-suite.conf`` file if present in the workflow.
48+
49+
.. describe:: log/install/
50+
51+
Contains the workflow installation log (i.e. the output of the
52+
``cylc install`` command.
53+
54+
.. describe:: log/install/<start_number>-install.log
55+
56+
.. describe:: log/remote-install/
57+
58+
Contains a record of any remote platforms that the workflow has been
59+
installed onto.
60+
61+
.. describe:: log/remote-install/<start_number>-<type>-<platform>.log
62+
63+
.. describe:: log/version/
64+
65+
If the workflow :term:`source directory` is version controlled with Git or
66+
SVN, this directory will contain information extracted from the version
67+
control system at the time the workflow was installed:P
68+
69+
.. describe:: log/version/uncommitted.diff
70+
71+
Any uncommitted diff in unified diff format.
72+
73+
.. describe:: log/version/vcs.json
74+
75+
Information including the commit hash / revision number.
76+
77+
.. describe:: opt/rose-suite-cylc-install.conf
78+
79+
If Rose is used, this file will contain any Rose options that were used
80+
with the ``cylc install`` command (i.e. any overrides which were applied
81+
when the workflow was installed).
82+
83+
.. note::
84+
85+
Where the ``<variables>`` in the above paths are:
86+
87+
.. cylc-scope:: global.cylc[scheduler][logging]
88+
89+
``start_number``
90+
Is ``1`` when you first start the workflow. This number increments with
91+
each restart.
92+
``type``
93+
Is either ``start``, ``restart`` or ``reload``.
94+
``file_number``
95+
Is initally ``1``, if the log file exceeds the `maximum size in bytes`,
96+
it will "roll over" into a new log file and this number will increment.
97+
If the number of "roll over" log files exceeds the
98+
`rolling archive length`, then Cylc will remove an old log file before
99+
creating a new one.
100+
``time``
101+
Is a timestamp in ISO8601 format.
102+
103+
.. cylc-scope::
104+
105+
106+
.. _log_files.scheduler_log:
107+
108+
The Scheduler Log File
109+
----------------------
5110

6111
Each workflow maintains its own log of time-stamped events in the
7112
:term:`workflow log directory` (``$HOME/cylc-run/<workflow-id>/log/scheduler/``).

src/user-guide/troubleshooting.rst

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,7 @@ for debugging some specific issues:
6161
These files can allow you to see how the configuration was changed between
6262
restarts and reloads.
6363

64-
Each time a workflow is started, restarted or reloaded,
65-
the configuration used is recorded in a file in ``log/config``.
66-
This provides a series of snapshots of the configuration.
67-
These files are named:
68-
69-
``<LOG FILE NUMBER>-<EVENT>-<(RE)START NUMBER>``.
70-
71-
If for example we did:
72-
73-
.. code-block:: console
74-
75-
# Command # File created
76-
cylc play workflow # 01-start-01.cylc
77-
cylc vr workflow # 02-reload-01.cylc
78-
cylc stop workflow
79-
cylc play workflow # 03-restart-02.cylc
64+
For more information on workflow log files, see :ref:`user-guide.log_files`.
8065

8166

8267
Shell Login/Profile Files

0 commit comments

Comments
 (0)