https://prefect.io logo
Title
h

Henry H

08/11/2019, 5:53 PM
Did a quick search in slack just to make sure it wasn't answered - is it possible to schedule multiple flows within the same python process without resorting to forking? Just wanted to make sure there wasn't an easier way than kicking off 2 different python processes each with their own flow and schedule.
c

Chris White

08/11/2019, 5:57 PM
Hi @Henry H! Prefect Core does not provide a first class way of dealing with / orchestrating multiple running flows
h

Henry H

08/11/2019, 5:58 PM
okay, so flow.run() is blocking even when using a schedule, correct? Curious, what is the other benefits of using the prefect scheduler capability versus an external scheduler which kicks off the flow.run() process (definitely see the easy of use, value in keeping them close from a code/visibility standpoint, but any others you can think of?)
c

Chris White

08/11/2019, 6:06 PM
correct,
flow.run
is always blocking; to be clear, calling
flow.run
is not the actual Prefect Scheduler - our fully featured scheduler service is a part of Prefect Cloud, which is our recommended solution for orchestrating multiple workflows. As you mention,
flow.run
is a simply a convenience method for local execution that provides an easy way to test / run flows locally
👍 1