<@ULVA73B9P> Can i run `flow.serve` twice for the ...
# ask-marvin
d
@Marvin Can i run
flow.serve
twice for the same flow, from two different machines?
m
Running
flow.serve
on the same flow from two different machines is not explicitly documented in Prefect 3.x. However,
flow.serve
is designed as a long-running process to handle scheduled and remotely triggered runs. It may not be inherently designed to coordinate across multiple instances on different machines without additional setup or orchestration. If you aim to run the same flow from multiple locations, consider using Prefect's deployment and orchestration features to schedule and manage the flow runs centrally. This can help avoid potential conflicts or inconsistencies. For more details, you can refer to the documentation on running flows in local processes: Prefect 3.x Documentation. If you have specific needs or constraints, such as high availability or load balancing, it might be worth exploring Prefect's cloud or server offerings for a more robust solution.
n
short answer, yes! though we do have things specifically meant to be horizontally scalable like background tasks