Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Gilgur <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
  • Loading branch information
Joibel and Anton Gilgur authored Aug 29, 2024
1 parent d1ba33a commit 681f2f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/synchronization.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ data:
## Workflow-level Synchronization
You can limit parallel execution of a workflow by using Workflow-level synchronization.
If multiple workflows have the same synchronization reference they will be limited by that synchronization reference.
You can limit parallel execution of workflows by using the same synchronization reference.
In this example the synchronization key `workflow` is configured as limit `"1"`, so only one workflow instance will execute at a time even if multiple workflows are created.

Expand Down Expand Up @@ -79,8 +78,7 @@ spec:

## Template-level Synchronization

You can limit parallel execution of a template by using Template-level synchronization.
If templates have the same synchronization reference they will be limited by that synchronization reference, across all workflows.
You can limit parallel execution of templates by using the same synchronization reference.

In this example the synchronization key `template` is configured as limit `"2"`, so a maximum of two instances of the `acquire-lock` template will execute at a time.
This applies even when multiple steps or tasks within a workflow or different workflows refer to the same template.
Expand Down

0 comments on commit 681f2f6

Please sign in to comment.