I am getting a weird behavior when deploying flows...
# ask-community
t
I am getting a weird behavior when deploying flows with prefect 2.0 I was able to deploy it locally (running Deployment.build_from_flow). I deployed the flow to a server but for some reason it errors saying that i can't find the path (path from my local computer).
n
Hi @Tomás Emilio Silva Ebensperger what infrastructure and storage are you using for this deployment?
t
It was weird, but by setting load_existing = false, i solved the issue.
👍 1
n
if you don't mind me asking, where did you set
load_existing=false
?
t
Copy code
from prefect.deployments import Deployment

from flow import my_flow

deployment = Deployment.build_from_flow(
    flow=my_flow,
    name="account-pipeline", 
    version=1, 
    work_queue_name="account-pipeline",
	apply=True,
	load_existing=False,
)
n
hmm - maybe your workspace had saved an older location that you had previously specified for this deployment's flow
t
thanks man, yeah i solved it, the setup i have with render.com has been acting a little weird. i appreciate the help
👍 1