How to guarantee only one workflow running among mutual exclusive workflows?

Hi

Let’s say there are multiple workflows initiated by temporal CLI, and each workflow contains multiple activities. But these workflows are mutual exclusive to each other and when one workflow is running, the others can not be scheduled or get executed. Once the running workflow is completed, the first workflow requested among the rest can be picked up and get executed.
Just wonder how to do that in temporal Python SDK.

Please shed lights and any help is highly appreciated!

Use workflow ID uniqueness. Only one workflow per workflow ID can be open at a time. So use the same workflow ID for all these exclusive workflows.