Skip to content

Commit 96ddc35

Browse files
Merge pull request #5699 from hjoliver/fix-cli-help-my_flow
Change my_flow to my_workflow in CLI help.
2 parents fb6d49e + 1884ef8 commit 96ddc35

File tree

8 files changed

+47
-47
lines changed

8 files changed

+47
-47
lines changed

cylc/flow/scripts/hold.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,29 @@
2525
To pause an entire workflow use "cylc pause".
2626
2727
Examples:
28-
# Hold mytask at cycle point 1234 in my_flow (if it has not yet spawned, it
29-
# will hold as soon as it spawns):
30-
$ cylc hold my_flow//1234/mytask
28+
# Hold mytask at cycle point 1234 in my_workflow (if it has not yet spawned,
29+
# it will hold as soon as it spawns):
30+
$ cylc hold my_workflow//1234/mytask
3131
32-
# Hold all active tasks at cycle 1234 in my_flow (note: tasks before/after
33-
# this cycle point will not be held):
34-
$ cylc hold 'my_flow//1234/*'
32+
# Hold all active tasks at cycle 1234 in my_workflow (note: tasks
33+
# before/after this cycle point will not be held):
34+
$ cylc hold 'my_workflow//1234/*'
3535
36-
# Hold all active instances of mytask in my_flow (note: this will not hold
37-
# any unspawned tasks that might spawn in the future):
38-
$ cylc hold 'my_flow//*/mytask'
36+
# Hold all active instances of mytask in my_workflow (note: this will not
37+
# hold any unspawned tasks that might spawn in the future):
38+
$ cylc hold 'my_workflow//*/mytask'
3939
4040
# Hold all active failed tasks:
41-
$ cylc hold 'my_flow//*:failed'
41+
$ cylc hold 'my_workflow//*:failed'
4242
43-
# Hold all tasks after cycle point 1234 in my_flow:
44-
$ cylc hold my_flow// --after=1234
43+
# Hold all tasks after cycle point 1234 in my_workflow:
44+
$ cylc hold my_workflow// --after=1234
4545
46-
# Hold cycles 1, 2 & 3 in my_flow:
47-
$ cylc hold my_flow// //1 //2 //3
46+
# Hold cycles 1, 2 & 3 in my_workflow:
47+
$ cylc hold my_workflow// //1 //2 //3
4848
49-
# Hold cycle "1" in "my_flow_1" and "my_flow_2":
50-
$ cylc hold my_flow_1//1 my_flow_2//1
49+
# Hold cycle "1" in "my_workflow_1" and "my_workflow_2":
50+
$ cylc hold my_workflow_1//1 my_workflow_2//1
5151
5252
Note: To pause a workflow (immediately preventing all job submission), use
5353
'cylc pause' instead.

cylc/flow/scripts/kill.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
Kill running or submitted jobs.
2222
2323
Examples:
24-
# kill a specific task in my_flow
25-
$ cylc kill my_flow//1/a
24+
# kill a specific task in my_workflow
25+
$ cylc kill my_workflow//1/a
2626
27-
# kill multiple tasks in my_flow
27+
# kill multiple tasks in my_workflow
2828
$ cylc kill myflow// //1/a //1/b //1/c
2929
30-
# kill all active tasks in the my_flow
31-
$ cylc kill 'my_flow//*'
30+
# kill all active tasks in the my_workflow
31+
$ cylc kill 'my_workflow//*'
3232
"""
3333

3434
from functools import partial

cylc/flow/scripts/pause.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
This suspends submission of all tasks in a workflow.
2424
2525
Examples:
26-
# pause my_flow
27-
$ cylc pause my_flow
26+
# pause my_workflow
27+
$ cylc pause my_workflow
2828
29-
# resume my_flow
30-
$ cylc play my_flow
29+
# resume my_workflow
30+
$ cylc play my_workflow
3131
3232
(Not to be confused with `cylc hold` which suspends submission of individual
3333
tasks within a workflow).

cylc/flow/scripts/poll.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
including incomplete finished tasks.
2727
2828
Examples:
29-
# poll all pollable tasks in my_flow
30-
$ cylc poll 'my_flow//*'
29+
# poll all pollable tasks in my_workflow
30+
$ cylc poll 'my_workflow//*'
3131
32-
# poll specific tasks in my_flow
33-
$ cylc poll my_flow// //1/a //1/b
32+
# poll specific tasks in my_workflow
33+
$ cylc poll my_workflow// //1/a //1/b
3434
"""
3535

3636
from functools import partial

cylc/flow/scripts/release.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
Release held tasks in a workflow.
2222
2323
Examples:
24-
# Release mytask at cycle 1234 in my_flow
25-
$ cylc release my_flow//1234/mytask
24+
# Release mytask at cycle 1234 in my_workflow
25+
$ cylc release my_workflow//1234/mytask
2626
27-
# Release all active tasks at cycle 1234 in my_flow
28-
$ cylc release 'my_flow//1234/*'
27+
# Release all active tasks at cycle 1234 in my_workflow
28+
$ cylc release 'my_workflow//1234/*'
2929
30-
# Release all active instances of mytask in my_flow
31-
$ cylc release 'my_flow//*/mytask'
30+
# Release all active instances of mytask in my_workflow
31+
$ cylc release 'my_workflow//*/mytask'
3232
3333
# Release all held tasks and remove the hold point
34-
$ cylc release my_flow --all
34+
$ cylc release my_workflow --all
3535
3636
Held tasks do not submit their jobs even if ready to run.
3737

cylc/flow/scripts/reload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
Example:
2424
# install and run the workflow
2525
$ cylc install
26-
$ cylc play my_flow
26+
$ cylc play my_workflow
2727
2828
# make changes to the workflow source directory
2929
3030
# reinstall the workflow
31-
$ cylc reinstall my_flow
31+
$ cylc reinstall my_workflow
3232
3333
# reload the workflow to pick up changes
34-
$ cylc reload my_flow
34+
$ cylc reload my_workflow
3535
# the workflow is now running with the new config
3636
3737
All settings including task definitions, with the exception of workflow log

cylc/flow/scripts/set_outputs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
'''
3737
3838
# spawn 1/b and 1/c, but 1/d will not subsequently run
39-
$ cylc set-outputs my_flow//1/a
39+
$ cylc set-outputs my_workflow//1/a
4040
4141
# spawn 1/b and 1/c as flow 2, followed by 1/d
42-
$ cylc set-outputs --flow=2 my_flow//1/a
42+
$ cylc set-outputs --flow=2 my_workflow//1/a
4343
4444
# spawn 1/bar as flow 3, followed by 1/baz
45-
$ cylc set-outputs --flow=3 --output=x my_flow//1/foo
45+
$ cylc set-outputs --flow=3 --output=x my_workflow//1/foo
4646
4747
Use --output multiple times to spawn off of several outputs at once.
4848
"""

cylc/flow/scripts/stop.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@
2222
2323
Examples:
2424
# wait for active tasks to finish, then shut down
25-
$ cylc stop my_flow
25+
$ cylc stop my_workflow
2626
2727
# kill active tasks, then shut down
28-
$ cylc stop my_flow --kill
28+
$ cylc stop my_workflow --kill
2929
3030
# shut down immediately, leave active tasks alone
31-
$ cylc stop my_flow --now
31+
$ cylc stop my_workflow --now
3232
3333
# shut down all workflows
3434
$ cylc stop '*'
3535
3636
# shut down after the cycle 1234 has been passed
37-
$ cylc stop my_flow//1234
37+
$ cylc stop my_workflow//1234
3838
3939
# shut down after the task foo in cycle 1234 has succeeded
40-
$ cylc stop my_flow//1234/foo
40+
$ cylc stop my_workflow//1234/foo
4141
4242
By default stopping workflows wait for submitted and running tasks to complete
4343
before shutting down. You can change this behaviour with the --mode option.

0 commit comments

Comments
 (0)