-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move workflow run modes description back to simulation-modes.rst change simulation-modes to workflow-run-modes
- Loading branch information
Showing
9 changed files
with
199 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ job fails and the task is re-run). | |
job-scripts | ||
job-submission | ||
ssh-job-management | ||
task-run-modes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
.. _task-run-modes: | ||
|
||
Task Run Modes | ||
============== | ||
|
||
.. versionadded:: 8.4.0 | ||
|
||
* Before 8.4.0 run modes could only be set for the workflow, not | ||
for individual tasks. | ||
* Skip mode. | ||
|
||
|
||
As well as the default task implementation ("live" mode) | ||
other implementations can be selected: | ||
|
||
* By setting the scheduler run mode as an argument to the | ||
``cylc play --mode`` command (:ref:`workflow-run-modes.simulation` | ||
and :ref:`workflow-run-modes.dummy`). | ||
* By setting :cylc:conf:`[runtime][<namespace>]run mode` for | ||
"skip" mode. | ||
|
||
.. note:: | ||
|
||
The simulation and dummy workflow run modes ignore the | ||
:cylc:conf:`[runtime][<namespace>]run mode` setting. | ||
|
||
|
||
.. _task-run-modes.skip: | ||
|
||
Skip Mode | ||
--------- | ||
|
||
Skip mode is designed as an aid to workflow control: | ||
|
||
* Allows creation of :term:`dummy tasks<dummy task>` as part of workflow | ||
design. | ||
* Allows skipping of tasks in a running workflow using | ||
``cylc broadcast -s 'run mode = skip'``. | ||
|
||
Skip mode allows the user to specify which task outputs | ||
will be emitted using :cylc:conf:`[runtime][<namespace>][skip]outputs`. | ||
|
||
By default task event handlers are disabled by skip mode, but they | ||
can be enabled using | ||
:cylc:conf:`[runtime][<namespace>][skip]disable task event handlers`. | ||
|
||
Set task to succeeded | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. admonition:: Scenario | ||
|
||
We don't need a task to run, but want to set it to succeed. | ||
|
||
Broadcast :cylc:conf:`[runtime][<namespace>]run mode` setting the | ||
value to ``skip``. | ||
|
||
Create a Graph Control Task | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. admonition:: Scenario | ||
|
||
We have a large family to large family trigger. | ||
|
||
.. code-block:: cylc | ||
[task parameters] | ||
x = 1..N # Where N is big. | ||
[scheduling] | ||
[[graph]] | ||
R1 = FAMILY:succeed-all => FAMILY2 | ||
[runtime] | ||
[[FAMILY, FAMILY2]] | ||
[[task1<x>]] | ||
inherit = FAMILY | ||
[[task2<x>]] | ||
inherit = FAMILY2 | ||
If we increase N, the number of dependencies being tracked | ||
by the scheduler is N^2. | ||
|
||
Adding a skip mode task between the families: | ||
|
||
.. code-block:: cylc | ||
FAMILY:succeed-all => skiptask => FAMILY2 | ||
Will reduce the number of dependencies to 2N. | ||
|
||
Parameter Exclusion | ||
^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. admonition:: Scenario | ||
|
||
We want to skip a small number of tasks from a parameterized | ||
group of tasks: | ||
|
||
.. code-block:: cylc | ||
[task parameters] | ||
# House number 13 doesn't actually exist on this street... | ||
house_number = 1..20 | ||
We can use skip mode to make sure that a parameter task always | ||
succeeds without running anything: | ||
|
||
.. code-block:: cylc | ||
[runtime] | ||
[[post parcel<house_number>]] | ||
script = send letter | ||
[[post parcel<house_number=13>]] | ||
run mode = skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters