how to make a limit on active workflows? For example, I want to make the queue accumulate until a worker is free and so that, for example, there are always only 100 active workflows. i.e. how to limit execution, I have 100 workers running, but I see 1200 worklow, how to make it so that there are exactly 100 workers, and the rest of the tasks are pending?
can you share the use case to having to limit the concurrent executions? Each worker should be able to run handle more than one execution. Or are you asking about concurrent activities?
there are always only 100 active workflows.
If that is a business requirement you can have a “manager workflow” that the client sends requests to using signalWithStart, and use the sliding-window approach (see this example in java) to control the number of concurrent running workflows.
Antonio