Currently, Prefect 2.x does not provide a built-in mechanism to automatically check if a deployment has a flow in the running state before scheduling a subsequent flow run. However, you could implement a custom solution to achieve this by:
1. Querying the Prefect API or database to retrieve the current state of flow runs that belong to a particular deployment.
2. Checking the status of each flow run to see if any are in a running state.
3. Using the information obtained to decide whether to proceed with scheduling a new flow run.
Please note that this would require additional scripting or development on top of the Prefect 2.x framework. If there's more specific guidance available in the Prefect documentation or community discussions, it would typically detail using the Prefect Client to query for flow runs and their states.