Hi Prefect community,
I also have problem with redeploy, please help.
I'm using Prefect 2.0b3, and I want to make changes to my deployment. Maybe to change the code, maybe to remove schedule...
But when I run
prefect deployment create <deployment_name>
for an existed deployment, I get error
prefect.exceptions.ObjectAlreadyExists
and no changes are made.
Please help me on how exactly do I make changes to my deployments.
Thank you.
a
Anna Geller
05/13/2022, 11:13 AM
Last night we've pushed a new release that fixes that error 🎉 try upgrading to 2.0b4:
Thank you so much 🙏
So I just need to update client side, redeployment and ui side will be able to pickup changes, am I correct?
a
Anna Geller
05/13/2022, 11:23 AM
You'd need to upgrade the package and then restart Orion
Anna Geller
05/13/2022, 11:25 AM
not sure if running DB migrations is needed but this is how you would do it (I think - don't take my word for it if you do it in production):
Copy code
prefect orion database upgrade
Anna Geller
05/13/2022, 11:31 AM
not sure if redeployment of flows is needed though
q
Quan Cao
05/13/2022, 11:36 AM
Thank you Anna.
Actually I'm using Cloud option, mainly because I cannot get Orion to work due to its unable to make API call to client's API, so I hope it will be able pickup the changes just fine.
a
Anna Geller
05/13/2022, 11:46 AM
that's right, with Cloud 2.0 you don't have to worry about upgrades, it will just work - try again to create the deployment that failed before and LMK if this is fixed now
🙌 1
q
Quan Cao
05/13/2022, 1:22 PM
It worked fine, and seemed like nothing gone wrong with my production setup for now.
Thank you.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.