Skip to content

Commit 56090ab

Browse files
Merge pull request #739 from oliver-sanders/interventions.hold-after-cycle-point
interventions: document holding all tasks, triggering and releasing
2 parents cde851e + 921c5b0 commit 56090ab

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

src/user-guide/interventions/index.rst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,52 @@ Terminate a Chain of Automatic Retries
439439
Use the same intervention as :ref:`interventions.set-task-outputs`,
440440
but specify the "failed" output rather than
441441
"succeeded".
442+
443+
444+
Hold The Workflow And Trigger Tasks One By One
445+
----------------------------------------------
446+
447+
:Example:
448+
I want to hold back the workflow whilst I manually run one or more tasks
449+
to fix a problem or test a task.
450+
451+
:Solution:
452+
* Hold all tasks after a specified cycle.
453+
* Trigger the task(s) you want to run.
454+
* When you're done triggering, release the held tasks to allow the workflow
455+
to continue.
456+
457+
.. tab-set::
458+
459+
.. tab-item:: GUI
460+
:sync: gui
461+
462+
.. image:: set-and-release-hold-point.gif
463+
:width: 75%
464+
465+
.. tab-item:: CLI
466+
:sync: cli
467+
468+
.. code-block:: console
469+
470+
$ # hold all tasks after the cycle "2000"
471+
$ cylc hold --after=2000 <workflow>
472+
473+
$ # trigger the task(s) you want to run
474+
$ cylc trigger <workflow>//<cycle>/<task>
475+
476+
$ # release the "hold point" to allow the workflow to continue
477+
$ cylc release --all <workflow>
478+
479+
.. note::
480+
481+
The difference between the workflow "paused" state and the task "held" state:
482+
483+
Workflow Pause
484+
When a workflow is :term:`paused <pause>`, no new jobs will be submitted.
485+
This gives you an opportunity to make changes to the workflow, however, if
486+
you trigger tasks, they will not run until the workflow is resumed.
487+
488+
Task Hold
489+
When a task is :term:`held <hold>`, then it will not submit (if ready to
490+
submit) until released.
3.34 MB
Loading

0 commit comments

Comments
 (0)