开发者

How to limit number of concurrent workflows running?

The title is pretty much the question. Is there some way to limit the number of concurrent workflows running at any given time?

Some background: I'm using eventarc to dispatch a workflow once a message has been sent to a pubsub topic. The workflow will be used to start some long-running operation (LRO) but for reasons I won't go into, I don't want m开发者_运维百科ore than 3 instances of this workflow running at a given time.

Is there some way to do this? - primarily from some type of configuration rather than using another compute resource.


There is no configuration to limit running processes that specifically targets sessions that are executed by a Workflow enabled for concurrent execution. The existing process limit applies to all sessions without differentiating between those from non-concurrent or concurrent enabled Workflows.

Synchronization enables users to limit the parallel execution of certain workflows or templates within a workflow without having to restrict others.

Users can create multiple synchronization configurations in the ConfigMap that can be referred to from a workflow or template within a workflow. Alternatively, users can configure a mutex to prevent concurrent execution of templates or workflows using the same mutex.

Refer to this link for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜