Hey everyone, I'm trying to run two prefect flows ...
# ask-community
p
Hey everyone, I'm trying to run two prefect flows with different schedules within the same file. Is this possible? I saw the documentation and I see there can be different clocks for the same schedule, but didnt see anything about my use case. Example: • Machine Learning application where you want to train a model every week, generate predictions every day and run a reporting script every 3 days. I could separate this into three prefect files/flows but I don't want to I'm using the open source version, offline
k
Hey @Paulo Maia, if you are only using Prefect core, I think you are doing
flow.run()
? You would need another process and do
flow2.run()
there so I think you would need to change the file. Just making sure you’re aware that Prefect Cloud gives 10000 free task runs every month, which is more than enough to get started.
p
Hi Kevin Yup, I'm using flow.run() - thought we could have a single file for that, thanks! I'll check out the Cloud Version
k
With Cloud you can register both of the flows, and then during runtime, they will be spun off as different processes by the agent (a lightweight process running on the same machine)