Hey wonder if anyone could help me with a v1 ->...
# ask-community
j
Hey wonder if anyone could help me with a v1 -> v2 migration Q - so in V1 I use the following pattern; • single flow with some param • multiple clocks combined into a single schedule for the flow • each clock has different dafault params How would something similar be achieved in v2?
p
Deployments, you can have multiple deployments for a flow with different schedules and parameters. So you can have one deployment that schedules the flow for every friday, and one deployment that schedules the same flow for every saturday
j
Yeah I thought that would probably be the answer - means I have to concern myself with deploying each of the deployments independently though right...although the mental model of how to make CI based changes to things has not really clicked for me yet so maybe will become clearer
p
We have written a python script that will take a list of the deployments for each flow and deploys them. So we try to have it in one place, but it sure takes some adjusting. We also previously used prefect 1 and I wasn’t to sure about this approach. I still don’t think this is really the way to go, but I get where they are coming from
I did not really understand the workflow as well, but the mental model from prefect 2 is different from prefect 1. Once I started working with prefect 2, it started clicking more and more. At first I did not see the advantages, but when you see it in action it is way better than before (in my opinion)