Hi, do I need to specify the entrypoint function w...
# ask-community
g
Hi, do I need to specify the entrypoint function when I use flow.from_source? Can I just specify the path like it was with the Deployment class? Moreover, I’m getting
ValueError: Flow run UUID('0818ce8e-aa42-4a8d-949a-baeab37698aa') was created from deployment <> which is configured with a storage block. Please use an agent to execute this flow run.
how then I should migrate from agent to worker if agents are deprecated?
n
hi @Giacomo Chiarella - you can check this out , which should apply to prefect 2.19.x as well
g
Hi @Nate, thank you for your help. Can I first upgrade from agent to worker using the old Deployment class to deploy and after switch to the new deployment code?
I’m at 2.16.0 currently which should not have the new deployment code flow.deploy
if the agent is deprecated since 2.16.0 of course (I may have confused, maybe the agent is deprecated since 2.19.0)