Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ronnie Dutta <[email protected]>
  • Loading branch information
hjoliver and MetRonnie committed Dec 10, 2024
1 parent 3bd6040 commit cce3c8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
11 changes: 7 additions & 4 deletions cylc/flow/network/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2215,10 +2215,13 @@ class Meta:
description = sstrip('''
Manually trigger tasks, even in a paused workflow.
Triggering an unqueued task queues it, to run when queue-released.
Triggering a queued task runs it now regardless of queue limiting.
The "on resume" option waits for a paused workflow to be resumed.
Triggering a task that is not yet queued will queue it.
Triggering a queued task runs it immediately.
Queues release tasks to run when their active task count
drops below the queue limit. So, depending on the task count, you
may need to trigger a task twice to make it run immediately.
Valid for: paused, running workflows.
''')
Expand Down
12 changes: 6 additions & 6 deletions cylc/flow/scripts/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
Force task(s) to run regardless of prerequisites, even in a paused workflow.
Triggering an unqueued task queues it, to run when released by the queue.
Triggering a queued task runs it immediately regardless of queue limiting.
So you may need to trigger tasks twice if queue limiting is in effect.
Triggering a task that is not yet queued will queue it.
If the workflow is paused queued waiting tasks will not run (unless manually
triggered) until the workflow is resumed, even if the queue empties out. This
includes tasks queued by manual triggering, when queue limits are in effect.
Triggering a queued task runs it immediately.
Queues release tasks to run when their active task count drops below the queue
limit. So, depending on the task count, you may need to trigger a task twice to make
it run immediately.
Attempts to trigger active tasks (submitted or running) will be ignored.
Expand Down

0 comments on commit cce3c8a

Please sign in to comment.