👋 hey folks…is there a way to use metaflow with argo’s synchronization (docs) to limit the number of workflows running concurrently?
s
square-wire-39606
01/25/2024, 5:36 AM
not today - is the goal to execute at most N executions concurrently where N can be greater than 1?
👍 1
s
salmon-exabyte-11054
01/25/2024, 2:28 PM
@square-wire-39606 almost, I’d rather N >= 1 (since we might want a flow to only be running one at a time)
salmon-exabyte-11054
01/25/2024, 2:29 PM
@square-wire-39606 I assume this could be added to the metaflow logic via a argo specific decorator, though right? Just curious if there is a known limitation in argo/metaflow and thus it’s just a PR away from happening or if there is a bigger issue at play
s
square-wire-39606
01/25/2024, 9:37 PM
Just a simple PR away from introducing support for N=1 (via mutex). We would have to think through N > 1 since managing a central counter using config maps can be tricky if you have multiple people working on updating the same workflow template.