https://prefect.io logo
Title
t

Tomás Emilio Silva Ebensperger

02/20/2023, 9:53 PM
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

Nate

02/20/2023, 11:10 PM
Hi @Tomás Emilio Silva Ebensperger what infrastructure and storage are you using for this deployment?
t

Tomás Emilio Silva Ebensperger

02/21/2023, 12:14 AM
It was weird, but by setting load_existing = false, i solved the issue.
👍 1
n

Nate

02/21/2023, 12:31 AM
if you don't mind me asking, where did you set
load_existing=false
?
t

Tomás Emilio Silva Ebensperger

02/21/2023, 12:32 AM
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

Nate

02/21/2023, 12:35 AM
hmm - maybe your workspace had saved an older location that you had previously specified for this deployment's flow
t

Tomás Emilio Silva Ebensperger

02/21/2023, 1:29 AM
thanks man, yeah i solved it, the setup i have with render.com has been acting a little weird. i appreciate the help
👍 1