[archived] "Synchronization" docs discussion #10949
Replies: 2 comments 3 replies
-
Can I condition the assignment of a mutex over a template, based on a workflow argument? I'm looking for something like: apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: test-
spec:
arguments:
parameters:
- name: mutex_
value: "no"
entrypoint: synchronization-tmpl-level-mutex-example
templates:
- name: synchronization-tmpl-level-mutex-example
steps:
- - name: synchronization-acquire-lock
template: acquire-lock
- name: acquire-lock
# Ideally something like:
# synchronization: {"mutex": {"name": "welcome"}} if mutex_ == yes else {}
container:
image: alpine:latest
command: [sh, -c]
args: ["sleep 20; echo acquired lock"] |
Beta Was this translation helpful? Give feedback.
2 replies
-
Feature request: Ability to acquire a semaphore with a weight parameter. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
argo-workflows/synchronization/
https://argoproj.github.io/argo-workflows/synchronization/
Beta Was this translation helpful? Give feedback.
All reactions