Skip to content

Commit 1b256d9

Browse files
Merge pull request #750 from oliver-sanders/document-workflow-log-files
document workflow log files
2 parents fa3f129 + 22adb55 commit 1b256d9

File tree

4 files changed

+141
-18
lines changed

4 files changed

+141
-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/dictionaries/words

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,13 @@ templating
198198
th
199199
timeout
200200
timeouts
201+
timestamp
201202
timestep
202203
timezone
203204
timezones
204205
tuple
205206
uiserver
207+
unparsed
206208
unpaused
207209
unpausing
208210
untracked

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

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

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

6112
Each workflow maintains its own log of time-stamped events in the
7113
: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)