Skip to content

Commit 7950d8d

Browse files
authored
Merge pull request #6618 from hjoliver/doc-tweak-active
Fix a doc ref.
2 parents c449576 + 9ae2542 commit 7950d8d

File tree

12 files changed

+45
-67
lines changed

12 files changed

+45
-67
lines changed

cylc/flow/cfgspec/workflow.py

Lines changed: 18 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,10 @@ def get_script_common_text(this: str, example: Optional[str] = None):
648648
''')
649649
Conf('runahead limit', VDR.V_STRING, 'P4', desc='''
650650
The runahead limit prevents a workflow from getting too far ahead
651-
of the oldest cycle with :term:`active tasks <active task>`.
651+
of the oldest :term:`active cycle`.
652652
653653
A cycle is considered to be active if it contains any
654-
:term:`active` tasks.
654+
:term:`active tasks <active task>`.
655655
656656
An integer interval value of ``Pn`` allows up to ``n+1`` cycles
657657
to be active at once.
@@ -668,11 +668,9 @@ def get_script_common_text(this: str, example: Optional[str] = None):
668668
``P0``
669669
Only one cycle can be active at a time.
670670
``P2``
671-
The scheduler will run up to two cycles ahead of the oldest
672-
active cycle.
671+
Allow up to two cycles ahead of the oldest active cycle.
673672
``P3D``
674-
The scheduler will run cycles up to three days of cycles ahead
675-
of the oldest active cycle.
673+
Allow cycles up to three days ahead of the oldest active cycle.
676674
677675
.. seealso::
678676
@@ -687,60 +685,42 @@ def get_script_common_text(this: str, example: Optional[str] = None):
687685
''')
688686

689687
with Conf('queues', desc='''
690-
Configuration of internal queues of tasks.
688+
Internal task queues to limit job activity.
691689
692-
This section will allow you to limit the number of simultaneously
693-
:term:`active tasks <active task>` (submitted or running) by
694-
assigning tasks to queues.
690+
Queues delay job submission in member tasks, until the active
691+
job count (for members) drops below the queue limit.
695692
696-
By default, a single queue called ``default`` is defined,
697-
with all tasks assigned to it and no limit to the number of those
698-
tasks which may be active.
693+
There is a ``default`` queue with a configurable limit of 100, for
694+
all tasks that are not assigned to other queues.
699695
700-
To use a single queue for the whole workflow, but limit the number
701-
of active tasks, set :cylc:conf:`[default]limit`.
702-
703-
To add additional queues define additional sections:
696+
You can define custom queues to limit job activity across other
697+
groups of tasks.
704698
705699
.. code-block:: cylc
706700
707701
[[queues]]
708-
[[[user_defined_queue]]]
702+
[[[my_queue]]]
709703
limit = 2
710-
members = TASK_FAMILY_NAME
704+
members = task1, task2, FAMILY1
711705
712706
.. seealso::
713707
714708
:ref:`InternalQueues`.
715709
'''):
716710
with Conf('<queue name>', desc='''
717-
Section heading for configuration of a single queue.
711+
Section for configuring a single queue.
718712
''') as Queue:
719713
Conf('limit', VDR.V_INTEGER, 0, desc='''
720-
The maximum number of :term:`active tasks <active task>`
721-
allowed at any one time, for this queue.
722-
723-
If set to 0 this queue is not limited.
714+
The active job limit for this queue. 0 means no limit.
724715
''')
725716
Conf('members', VDR.V_SPACELESS_STRING_LIST, desc='''
726-
A list of member tasks, or task family names to assign to
727-
this queue.
728-
729-
Assigned tasks will automatically be removed
730-
from the default queue.
717+
A list of task or family names to assign to this queue.
731718
''')
732719
with Conf('default', meta=Queue, desc='''
733-
The default queue for all tasks not assigned to other queues.
720+
The default queue, for all tasks not assigned to other queues.
734721
'''):
735722
Conf('limit', VDR.V_INTEGER, 100, desc='''
736-
Controls the total number of
737-
:term:`active tasks <active task>` in the default queue.
738-
739-
.. seealso::
740-
741-
- :cylc:conf:`flow.cylc[scheduling]
742-
[queues][<queue name>]limit`
743-
- :ref:`InternalQueues`
723+
The job limit for the ``default`` queue. 0 means no limit.
744724
''')
745725

746726
with Conf('special tasks', desc='''

cylc/flow/etc/examples/extending-workflow/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Extending Workflow
33

44
.. cylc-scope:: flow.cylc[scheduling]
55

6-
Sometimes we may run a workflow to :term:`completion <workflow completion>`,
6+
Sometimes we may run a workflow to :ref:`completion <workflow completion>`,
77
but subsequently wish to run it for a few more cycles.
88

99
With Cylc 7 this was often done by changing the `final cycle point` and

cylc/flow/scripts/set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
is the only xtrigger output and the default, so it can be omitted.)
6868
6969
CLI Completion:
70-
Cylc can auto-complete prerequisites and outputs for active tasks if you
71-
specify the task in the command before attempting TAB-completion.
70+
Cylc can auto-complete prerequisite and output names for tasks in the n=0
71+
window, if you type the task name before attempting TAB-completion.
7272
7373
Examples:
7474
# complete all required outputs of 3/bar:

cylc/flow/task_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def add_to_pool(self, itask) -> None:
276276
self.active_tasks.setdefault(itask.point, {})
277277
self.active_tasks[itask.point][itask.identity] = itask
278278
self.active_tasks_changed = True
279-
LOG.debug(f"[{itask}] added to active task pool")
279+
LOG.debug(f"[{itask}] added to the n=0 window")
280280

281281
self.create_data_store_elements(itask)
282282

@@ -893,7 +893,7 @@ def remove(self, itask: 'TaskProxy', reason: Optional[str] = None) -> None:
893893
itask.flow_nums
894894
)
895895

896-
msg = f"removed from active task pool: {reason or 'completed'}"
896+
msg = f"removed from the n=0 window: {reason or 'completed'}"
897897

898898
if itask.is_xtrigger_sequential:
899899
self.xtrigger_mgr.sequential_spawn_next.discard(itask.identity)

tests/functional/hold-release/02-hold-on-spawn.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ workflow_run_ok "${TEST_NAME_BASE}-run" \
3434
cylc release "${WORKFLOW_NAME}//1/foo"
3535
# 1/foo should run and spawn 1/bar as waiting and held
3636

37-
poll_grep_workflow_log -E '1/bar.* added to active task pool'
37+
poll_grep_workflow_log -E '1/bar.* added to the n=0 window'
3838

3939
sqlite3 "${WORKFLOW_RUN_DIR}/log/db" \
4040
'SELECT cycle, name, status, is_held FROM task_pool' > task-pool.out

tests/functional/hold-release/08-hold.t

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ init_workflow "${TEST_NAME_BASE}" <<'__FLOW_CONFIG__'
3333
[[holdrelease]]
3434
script = """
3535
cylc__job__wait_cylc_message_started
36-
cylc__job__poll_grep_workflow_log -E '1/foo.* added to active task pool'
37-
cylc__job__poll_grep_workflow_log -E '1/bar.* added to active task pool'
38-
cylc__job__poll_grep_workflow_log -E '1/cheese.* added to active task pool'
39-
cylc__job__poll_grep_workflow_log -E '1/jam.* added to active task pool'
40-
cylc__job__poll_grep_workflow_log -E '1/cat1.* added to active task pool'
41-
cylc__job__poll_grep_workflow_log -E '1/cat2.* added to active task pool'
42-
cylc__job__poll_grep_workflow_log -E '1/dog1.* added to active task pool'
43-
cylc__job__poll_grep_workflow_log -E '1/dog2.* added to active task pool'
36+
cylc__job__poll_grep_workflow_log -E '1/foo.* added to the n=0 window'
37+
cylc__job__poll_grep_workflow_log -E '1/bar.* added to the n=0 window'
38+
cylc__job__poll_grep_workflow_log -E '1/cheese.* added to the n=0 window'
39+
cylc__job__poll_grep_workflow_log -E '1/jam.* added to the n=0 window'
40+
cylc__job__poll_grep_workflow_log -E '1/cat1.* added to the n=0 window'
41+
cylc__job__poll_grep_workflow_log -E '1/cat2.* added to the n=0 window'
42+
cylc__job__poll_grep_workflow_log -E '1/dog1.* added to the n=0 window'
43+
cylc__job__poll_grep_workflow_log -E '1/dog2.* added to the n=0 window'
4444
cylc hold "${CYLC_WORKFLOW_ID}//1/*FF" # inexact fam
4545
cylc hold "${CYLC_WORKFLOW_ID}//1/TOAST" # exact fam
4646
cylc hold "${CYLC_WORKFLOW_ID}//1/cat*" # inexact tasks

tests/functional/hold-release/18-hold-cycle-globs/flow.cylc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
[runtime]
2424
[[holder]]
2525
script = """
26-
cylc__job__poll_grep_workflow_log -E '19900101T0000Z/t1.* added to active task pool'
27-
cylc__job__poll_grep_workflow_log -E '20100101T0000Z/t2.* added to active task pool'
28-
cylc__job__poll_grep_workflow_log -E '20300101T0000Z/t3.* added to active task pool'
26+
cylc__job__poll_grep_workflow_log -E '19900101T0000Z/t1.* added to the n=0 window'
27+
cylc__job__poll_grep_workflow_log -E '20100101T0000Z/t2.* added to the n=0 window'
28+
cylc__job__poll_grep_workflow_log -E '20300101T0000Z/t3.* added to the n=0 window'
2929
cylc hold "${CYLC_WORKFLOW_ID}//*/t*"
3030
"""
3131
[[releaser]]

tests/functional/hold-release/19-no-reset-prereq-on-waiting/flow.cylc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
script = true
1717
[[holder]]
1818
script = """
19-
cylc__job__poll_grep_workflow_log -E '1/t1.* added to active task pool'
19+
cylc__job__poll_grep_workflow_log -E '1/t1.* added to the n=0 window'
2020
cylc hold "${CYLC_WORKFLOW_ID}//1/t1"
2121
"""
2222
[[releaser]]

tests/functional/restart/22-hold/flow.cylc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
[[t1]]
1818
script = """
1919
if [[ "${CYLC_TASK_CYCLE_POINT}" == '2016' ]]; then
20-
cylc__job__poll_grep_workflow_log -E '2016/t2.* added to active task pool'
20+
cylc__job__poll_grep_workflow_log -E '2016/t2.* added to the n=0 window'
2121
cylc hold "${CYLC_WORKFLOW_ID}//" //2016/t2 //2017/t2
2222
cylc stop "${CYLC_WORKFLOW_ID}"
2323
else

tests/functional/runahead/06-release-update.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ CYLC_RUN_PID="$!"
2727
poll_workflow_running
2828
YYYY="$(date +%Y)"
2929
NEXT1=$(( YYYY + 1 ))
30-
poll_grep_workflow_log -E "${NEXT1}/bar.* added to active task pool"
30+
poll_grep_workflow_log -E "${NEXT1}/bar.* added to the n=0 window"
3131

3232
# sleep a little to allow the datastore to update (`cylc dump` sees the
3333
# datastore) TODO can we avoid this flaky sleep somehow?

0 commit comments

Comments
 (0)