Skip to content

Commit 04604f2

Browse files
Improve back-compat info. (#407)
* Fix typos in caveats page. * Improve back-compat info. * Update src/7-to-8/caveats.rst Co-authored-by: Oliver Sanders <[email protected]> * 728: add "Does This Change Affect Me" box Co-authored-by: Oliver Sanders <[email protected]>
1 parent a9805b5 commit 04604f2

File tree

4 files changed

+73
-10
lines changed

4 files changed

+73
-10
lines changed

src/7-to-8/caveats.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Cylc |version| Caveats
22
======================
33

4-
This is a beta release of Cylc. There are some loose ends and features which
5-
have not yet been (re)implemented.
4+
This is a Cylc pre-release. There are some features which
5+
have not yet been implemented.
66

77

88
Cylc Flow
@@ -58,7 +58,7 @@ Multiple Selection
5858

5959
* https://github.com/cylc/cylc-ui/issues/434
6060
Installing Workflows
61-
At present there is no way to view or install non-installed workflows (a.k.a.
61+
At present there is no way to view or install
6262
:term:`source workflows <source directory>`) in the UI.
6363
Rose Edit
6464
Rose Edit is awaiting reimplementation in the UI.
@@ -107,7 +107,7 @@ Authorization
107107
A full-featured authorization system has been implemented for Cylc 8, but
108108
the UI doesn't yet provide easy access to other users' UI Servers.
109109

110-
CLI Via UIS
110+
CLI via UIS
111111
The ability to route Cylc commands via the UIS is planned for a future release
112112

113113
* https://github.com/cylc/cylc-flow/issues/3528

src/7-to-8/major-changes/cli.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _MajorChangesCLI:
2+
13
Command Line Interface
24
======================
35

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.. _MajorChangesExcludingTasksAtStartup:
2+
3+
Excluding Tasks at Start-up is Not Supported
4+
============================================
5+
6+
.. admonition:: Does This Change Affect Me?
7+
:class: tip
8+
9+
This will affect you if your workflows use the following configurations:
10+
11+
* ``[scheduling][special tasks]include at start-up``
12+
* ``[scheduling][special tasks]exclude at start-up``
13+
14+
15+
Overview
16+
--------
17+
18+
The Cylc 7 sheduler allowed you to exclude tasks from the scheduler at start-up:
19+
20+
.. code-block:: cylc
21+
22+
# Cylc 7 only
23+
[scheduling]
24+
[[special tasks]]
25+
include at start-up = foo, bar, baz # Cylc 8 ERROR!
26+
exclude at start-up = bar # Cylc 8 ERROR!
27+
28+
The first config item above excludes all task names not in the include-list;
29+
the second excludes specific tasks that would otherwise be included.
30+
31+
The Cylc 7 scheduler started up with an instance of every task in its "task
32+
pool", and the workflow evolved by each task spawning its own next-cycle
33+
instance at the right time. So, if you excluded a task a start-up it would not
34+
run in the workflow at all unless manually inserted later at runtime.
35+
36+
The Cylc 8 scheduler starts up with only the initial tasks in the graph and the
37+
workflow evolves by spawning new tasks on demand as dictated by the graph.
38+
Consequently excluding a task at start up as described above would have no
39+
effect at all on most tasks.
40+
41+
This feature also predated the current Cylc dependency graph configuration. To
42+
exclude tasks now without entirely removing them from the workflow definition,
43+
just comment them out of the graph.

src/7-to-8/summary.rst

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,29 @@ The workflow configuration file has changed from ``suite.rc`` to ``flow.cylc``.
2525
Cylc 7 Compatibility Mode
2626
-------------------------
2727

28-
Cylc 8 can run Cylc 7 workflows out of the box.
28+
The old ``suite.rc`` filename triggers a :ref:`backward
29+
compatibility mode<cylc_7_compat_mode>` in Cylc 8 which supports Cylc 7
30+
workflow configruations out of the box, with the following caveats:
2931

30-
Run ``cylc validate`` on your ``suite.rc`` (using Cylc 7) to check it does
31-
not contain any deprecated syntax before attempting to run it with Cylc 8.
32+
.. warning::
33+
34+
Cylc 6 syntax deprecated by Cylc 7 is now obsolete. Run ``cylc validate``
35+
*with Cylc 7* on your ``suite.rc`` to check for deprecation warnings and fix
36+
those before validating with Cylc 8.
37+
38+
.. warning::
3239

33-
The old ``suite.rc`` filename triggers a backward compatibility mode,
34-
for more information see :ref:`cylc_7_compat_mode`.
40+
Check for any use of Cylc commands in task scripting. Some Cylc 7 commands
41+
have been removed and some others now behave differently.
42+
See :ref:`command line interface changes<MajorChangesCLI>`.
43+
44+
.. warning::
45+
46+
Cylc 8 does not support
47+
:ref:`excluding tasks at start-up<MajorChangesExcludingTasksAtStartup>`.
48+
If your workflow used this old functionality, it may have been used in
49+
combination with the ``cylc insert`` command (which has been removed from
50+
Cylc 8) and ``cylc remove`` (which still exists but is much less needed).
3551

3652
.. warning::
3753

@@ -64,7 +80,6 @@ Architecture
6480

6581
- Technical Reference: :ref:`architecture-reference`
6682

67-
6883
The main Cylc 8 system components are:
6984

7085
- **Cylc Scheduler**
@@ -335,8 +350,11 @@ Cylc Install
335350

336351
Cylc install cleanly separates workflow source directory from run directory,
337352
and installs workflow files into the run directory at start-up.
353+
338354
- ``cylc install`` copies workflow source files to a dedicated run-directory
355+
339356
- :term:`source directory` locations can be set in global config
357+
340358
- each install creates a new numbered :term:`run directory` (by default)
341359

342360
.. code-block:: console

0 commit comments

Comments
 (0)