Skip to content

Commit 626274b

Browse files
Merge pull request #7092 from wxtim/doc.cylc-doc.884.follow-up
Use :envvar: reference to environment variables reference in
2 parents 2d3bb79 + e9431ac commit 626274b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

cylc/flow/cfgspec/globalcfg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@
542542
Submission retry delays is a list of ISO 8601 durations which tell Cylc
543543
how long to wait before the next try.
544544
545-
The job environment variable ``$CYLC_TASK_SUBMIT_NUMBER`` increments with each
546-
job submission attempt.
545+
The job environment variable :envvar:`CYLC_TASK_SUBMIT_NUMBER` increments
546+
with each job submission attempt.
547547
548548
Tasks only go to the ``submit-failed`` state if job submission fails with no
549549
retries left.
@@ -1092,8 +1092,8 @@ def default_for(
10921092
How Cylc determines and shares the identity of the workflow host.
10931093
10941094
The workflow host's identity must be determined locally by cylc and
1095-
passed to running tasks (via ``$CYLC_WORKFLOW_HOST``) so that task
1096-
messages can target the right workflow on the right host.
1095+
passed to running tasks (via :envvar:`CYLC_WORKFLOW_HOST`) so that
1096+
task messages can target the right workflow on the right host.
10971097
10981098
.. versionchanged:: 8.0.0
10991099

cylc/flow/cfgspec/workflow.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
833833
Externally triggered tasks (see :ref:`Old-Style External
834834
Triggers`) wait on external events reported via the
835835
``cylc ext-trigger`` command. To constrain triggers to a
836-
specific cycle point, include ``$CYLC_TASK_CYCLE_POINT``
836+
specific cycle point, include :envvar:`CYLC_TASK_CYCLE_POINT`
837837
in the trigger message string and pass the cycle point to the
838838
``cylc ext-trigger`` command.
839839
''')
@@ -1360,7 +1360,8 @@ def get_script_common_text(this: str, example: Optional[str] = None):
13601360
13611361
Job scripts are executed from within *work directories*
13621362
created automatically under the workflow run directory. A task
1363-
can get its own work directory from ``$CYLC_TASK_WORK_DIR``
1363+
can get its own work directory from
1364+
:envvar:`CYLC_TASK_WORK_DIR`
13641365
(or ``$PWD`` if it does not ``cd`` elsewhere at
13651366
runtime). The default directory path contains task name and
13661367
cycle point, to provide a unique workspace for every instance
@@ -1397,7 +1398,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
13971398
Execution retry delays is a list of ISO 8601 durations which
13981399
tell Cylc how long to wait before the next try.
13991400
1400-
The job environment variable ``$CYLC_TASK_TRY_NUMBER``
1401+
The job environment variable :envvar:`CYLC_TASK_TRY_NUMBER`
14011402
increments with each automatic retry, allowing you to vary task
14021403
behaviour between retries.
14031404

0 commit comments

Comments
 (0)