@@ -165,17 +165,21 @@ Set Task Outputs
165
165
.. image :: set-task-outputs.gui.gif
166
166
:width: 75%
167
167
168
- By default this sets the "succeeded" output, press the pencil icon next
169
- to the trigger command to specify a different output.
168
+ By default, this sets all :term: `required outputs <required output> ` for
169
+ the task, which usually includes ``succeeded ``.
170
+ To specify the output(s) you would like to set,
171
+ press the pencil icon next to the "Set" command .
170
172
171
173
.. tab-item :: Tui
172
174
:sync: tui
173
175
174
176
.. image :: set-task-outputs.tui.gif
175
177
:width: 75%
176
178
177
- By default, this sets the "succeeded" output. Use ``cylc set --output ``
178
- to specify a different output.
179
+ By default, this sets all :term: `required outputs <required output> ` for
180
+ the task, which usually includes ``succeeded ``.
181
+ To specify the output(s) you would like to set,
182
+ use ``cylc set --output ``.
179
183
180
184
.. tab-item :: CLI
181
185
:sync: cli
@@ -184,8 +188,10 @@ Set Task Outputs
184
188
185
189
$ cylc set <workflow>//<task>
186
190
187
- By default, this sets the "succeeded" output. Use the ``--output `` option
188
- to specify a different output.
191
+ By default, this sets all :term: `required outputs <required output> ` for
192
+ the task, which usually includes ``succeeded ``.
193
+ To specify the output(s) you would like to set,
194
+ use the ``--output `` option.
189
195
190
196
You can also :ref: `set task prerequisites <interventions.set-task-prerequisites >`.
191
197
Should I set task outputs or prerequisites?
@@ -203,7 +209,7 @@ Set Task Prerequisites
203
209
204
210
[scheduler]
205
211
allow implicit tasks = True
206
-
212
+
207
213
[scheduling]
208
214
[[graph]]
209
215
R1 = """
@@ -214,7 +220,7 @@ Set Task Prerequisites
214
220
# set prereqs "1/b2:succeeded" and "1/c:succeeded" on 1/z1
215
221
# set prereqs "all" on 1/z2
216
222
"""
217
-
223
+
218
224
[runtime]
219
225
[[b1]]
220
226
script = sleep 600
@@ -274,10 +280,10 @@ Set a Switch Task
274
280
switch:normal? => normal
275
281
switch:alternate? => alternate
276
282
normal | alternate => end
277
-
283
+
278
284
end[-P1] => start
279
285
"""
280
-
286
+
281
287
[runtime]
282
288
[[start]]
283
289
script = """
@@ -298,23 +304,23 @@ Set a Switch Task
298
304
take a particular path ahead of time:
299
305
300
306
.. code-block :: cylc-graph
301
-
307
+
302
308
start => switch
303
-
309
+
304
310
# by default, the workflow follows the "normal" path
305
311
switch:normal? => normal
306
-
312
+
307
313
# but it can follow an alternate route if desired
308
314
switch:alternate? => alternate
309
-
315
+
310
316
normal | alternate => end
311
317
312
318
:Solution:
313
319
Set "succeeded" as well as the desired output(s) on the task and use the
314
320
``-wait `` option. Cylc will follow the desired path when it gets there.
315
321
316
322
.. note ::
317
-
323
+
318
324
We set the "succeeded" output to prevent the task from being re-run when the
319
325
flow approaches it.
320
326
0 commit comments