Skip to content

Commit 2e0e8ad

Browse files
authored
Merge pull request #660 from oliver-sanders/clarify-runahead-limit
clarify runahead limit
2 parents 93b5765 + af4c3ff commit 2e0e8ad

File tree

9 files changed

+294
-201
lines changed

9 files changed

+294
-201
lines changed

src/glossary.rst

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,41 @@ Glossary
6868
don't get overwritten.
6969

7070

71+
active
72+
active task
73+
An active task is a task which is near ready to run, in the process of
74+
running, or which requires user intervention.
75+
76+
Active tasks are:
77+
78+
- Tasks which have some, but not all of their prerequisites satisfied.
79+
- ``waiting`` tasks, that are actively waiting on:
80+
81+
- :term:`xtriggers <xtrigger>`.
82+
- :ref:`internal queues <InternalQueues>`
83+
- :ref:`runahead limit <RunaheadLimit>`
84+
- ``preparing`` tasks - i.e. tasks in the process of submitting jobs
85+
- ``submitted`` and ``running`` tasks - i.e. those with active jobs
86+
- :term: `incomplete` tasks which have completed without satisfying all of their
87+
:term:`required outputs <required output>`, (e.g. a failed task
88+
where success was required).
89+
90+
Active tasks are in the ``n=0`` :term:`window <n-window>` which means they
91+
will always be displayed in the GUI and Tui.
92+
93+
The distinction between active and non-active tasks is important for
94+
the computing of the :term:`runahead limit`.
95+
96+
97+
active cycle
98+
A cycle is active if it contains any :term:`active tasks <active task>`.
99+
100+
Active cycles are counted towards the :term:`runahead limit`.
101+
102+
71103
window
72104
n-window
73105
active window
74-
workflow window
75106
active task pool
76107
This is a :term:`graph`-based window or view of the workflow at runtime,
77108
including tasks out to ``n`` graph edges from current :term:`active
@@ -155,19 +186,6 @@ Glossary
155186
the same as :term:`workflow id`.
156187

157188

158-
active
159-
active task
160-
An active task is a task in the submitted or running state.
161-
162-
163-
active-waiting
164-
active-waiting task
165-
An active-waiting task is a task in the :term:`scheduler's <scheduler>`
166-
``n=0`` :term:`active window` that is ready to run according to its task
167-
prerequisites, but is still waiting on a limiting mechanism such as a
168-
:term:`clock trigger`, task :term:`hold`, or :term:`internal queue`.
169-
170-
171189
external trigger
172190
xtrigger
173191
External triggers allow :term:`tasks <task>` in the :term:`graph` to
@@ -1675,13 +1693,18 @@ Glossary
16751693

16761694
runahead limit
16771695
runahead
1678-
In a :term:`cycling workflow`, the runahead limit determines the maximum
1679-
number of consecutive cycle points that can be active at once.
1696+
In a :term:`cycling workflow`, the runahead limit determines how far
1697+
ahead of the oldest :ref:`active cycle point` the workflow is permitted
1698+
to run.
1699+
1700+
The "oldest active cycle point" is the first cycle in the workflow to contain
1701+
any :term:`active tasks <active task>` (e.g. running tasks).
16801702

16811703
.. seealso::
16821704

16831705
* :cylc:conf:`[scheduling]runahead limit`
16841706
* :ref:`Runahead Limiting`
1707+
* :term:`active cycle`
16851708

16861709

16871710
workflow completion

src/hyperlinks.rst.include

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
.. _Cylc UI Server: https://github.com/cylc/cylc-uiserver
3939
.. _UI Server: https://github.com/cylc/cylc-uiserver
4040

41+
42+
.. Task Icons (inline)
43+
4144
.. |task-waiting| image:: /img/task-job-icons/task-waiting.png
4245
:height: 18px
4346
:align: middle
@@ -71,6 +74,8 @@
7174
:align: middle
7275

7376

77+
.. Task Modifiers (inline)
78+
7479
.. |task-held| image:: /img/task-job-icons/task-isHeld.png
7580
:height: 18px
7681
:align: middle
@@ -84,6 +89,23 @@
8489
:align: middle
8590

8691

92+
.. Task Modifiers (inline with modifiers as superscript)
93+
94+
.. |task-held-super| image:: /img/task-job-icons/task-isHeld.png
95+
:height: 24px
96+
:align: middle
97+
98+
.. |task-runahead-super| image:: /img/task-job-icons/task-isRunahead.png
99+
:height: 24px
100+
:align: middle
101+
102+
.. |task-queued-super| image:: /img/task-job-icons/task-isQueued.png
103+
:height: 24px
104+
:align: middle
105+
106+
107+
.. Job Icons (inline)
108+
87109
.. |job-submitted| image:: /img/task-job-icons/job-submitted.png
88110
:height: 18px
89111
:align: middle

src/img/n-window.gif

973 KB
Loading

src/user-guide/running-workflows/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Running Workflows
77
:maxdepth: 2
88

99
scheduler-start-up
10-
task-job-states
1110
tasks-jobs-ui
1211
retrying-tasks
1312
tracking-task-state

src/user-guide/running-workflows/reflow.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,14 @@ Triggering with No Active Flows
122122
same as if you had triggered the task just before the workflow completed.
123123

124124
Special Case: Triggering ``n=0`` Tasks
125-
Tasks in the ``n=0`` window are :term:`active`, :term:`active-waiting`, or
126-
:term:`incomplete`. Their flow membership is already determined - that of
125+
Tasks in the ``n=0`` window are :term:`active tasks <active task>`.
126+
Their flow membership is already determined - that of
127127
the parent tasks that spawned them.
128128

129-
- Triggering an :term:`active task` has no effect (it is already triggered).
130-
- Triggering an :term:`active-waiting task` queues it to run in the same flow.
129+
- Triggering a task with a submitted or running job has no effect
130+
(it is already triggered).
131+
- Triggering other :term:`active tasks <active task>` e.g. (a waiting
132+
task which is held) queues it to run in the same flow.
131133
- Triggering an :term:`incomplete task` queues it to re-run in the same flow.
132134

133135

src/user-guide/running-workflows/task-job-states.rst

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)