30
30
from cylc .flow .exceptions import GlobalConfigError
31
31
from cylc .flow .hostuserutil import get_user_home
32
32
from cylc .flow .network .client_factory import CommsMeth
33
+ from cylc .flow .pathutil import SYMLINKABLE_LOCATIONS
33
34
from cylc .flow .parsec .config import (
34
35
ConfigNode as Conf ,
35
36
ParsecConfig ,
@@ -1148,55 +1149,21 @@ def default_for(
1148
1149
1149
1150
.. versionadded:: 8.0.0
1150
1151
""" )
1151
- Conf ('log' , VDR .V_STRING , None , desc = """
1152
- Alternative location for the log dir.
1153
-
1154
- If specified the workflow log directory will be created in
1155
- ``<this-path>/cylc-run/<workflow-id>/log`` and a
1156
- symbolic link will be created from
1157
- ``$HOME/cylc-run/<workflow-id>/log``. If not specified
1158
- the workflow log directory will be created in
1159
- ``$HOME/cylc-run/<workflow-id>/log``.
1160
-
1161
- .. versionadded:: 8.0.0
1162
- """ )
1163
- Conf ('share' , VDR .V_STRING , None , desc = """
1164
- Alternative location for the share dir.
1165
-
1166
- If specified the workflow share directory will be
1167
- created in ``<this-path>/cylc-run/<workflow-id>/share``
1168
- and a symbolic link will be created from
1169
- ``<$HOME/cylc-run/<workflow-id>/share``. If not specified
1170
- the workflow share directory will be created in
1171
- ``$HOME/cylc-run/<workflow-id>/share``.
1172
-
1173
- .. versionadded:: 8.0.0
1174
- """ )
1175
- Conf ('share/cycle' , VDR .V_STRING , None , desc = """
1176
- Alternative directory for the share/cycle dir.
1177
-
1178
- If specified the workflow share/cycle directory
1179
- will be created in
1180
- ``<this-path>/cylc-run/<workflow-id>/share/cycle``
1181
- and a symbolic link will be created from
1182
- ``$HOME/cylc-run/<workflow-id>/share/cycle``. If not
1183
- specified the workflow share/cycle directory will be
1184
- created in ``$HOME/cylc-run/<workflow-id>/share/cycle``.
1185
-
1186
- .. versionadded:: 8.0.0
1187
- """ )
1188
- Conf ('work' , VDR .V_STRING , None , desc = """
1189
- Alternative directory for the work dir.
1190
-
1191
- If specified the workflow work directory will be created in
1192
- ``<this-path>/cylc-run/<workflow-id>/work`` and a
1193
- symbolic link will be created from
1194
- ``$HOME/cylc-run/<workflow-id>/work``. If not specified
1195
- the workflow work directory will be created in
1196
- ``$HOME/cylc-run/<workflow-id>/work``.
1197
-
1198
- .. versionadded:: 8.0.0
1199
- """ )
1152
+ for folder , versionadded in SYMLINKABLE_LOCATIONS .items ():
1153
+ Conf (folder , VDR .V_STRING , None , desc = f"""
1154
+ Alternative location for the { folder } dir.
1155
+
1156
+ If specified the workflow { folder } directory will
1157
+ be created in
1158
+ ``<this-path>/cylc-run/<workflow-id>/{ folder } ``
1159
+ and a symbolic link will be created from
1160
+ ``$HOME/cylc-run/<workflow-id>/{ folder } ``.
1161
+ If not specified the workflow log directory will
1162
+ be created in
1163
+ ``$HOME/cylc-run/<workflow-id>/{ folder } ``.
1164
+
1165
+ .. versionadded:: { versionadded }
1166
+ """ )
1200
1167
with Conf ('platforms' , desc = '''
1201
1168
Platforms allow you to define compute resources available at your
1202
1169
site.
@@ -1311,7 +1278,7 @@ def default_for(
1311
1278
The means by which task progress messages are reported back to
1312
1279
the running workflow.
1313
1280
1314
- Options:
1281
+ ..rubric:: Options:
1315
1282
1316
1283
zmq
1317
1284
Direct client-server TCP communication via network ports
@@ -1320,6 +1287,8 @@ def default_for(
1320
1287
ssh
1321
1288
Use non-interactive ssh for task communications
1322
1289
1290
+ For more information, see :ref:`TaskComms`.
1291
+
1323
1292
.. versionchanged:: 8.0.0
1324
1293
1325
1294
{ REPLACES } ``global.rc[hosts][<host>]task communication
0 commit comments