<@ULVA73B9P> ValueError: Flow run UUID(’32b…..‘) w...
# ask-marvin
a
@Marvin ValueError: Flow run UUID(’32b…..‘) was created from deployment ‘*****’ which is configured with a storage block. Please use an agent to execute this flow run? so deployment with storage block will not run on process type workers? if so what should I do, as agents are going to be deprecated? right?
m
It appears that process type workers cannot execute flow runs from deployments configured with a storage block. Instead, you will need to use worker infrastructure to run these deployments. While agents are deprecated, Prefect's worker infrastructure has replaced them for managing flow runs. ### Recommended Migration Steps 1. Switch to Workers: - Ensure your deployments are using workers, which can handle storage blocks effectively. 2. Configure Workers: - Use the command:
prefect worker start
3. Update Deployment Commands: - Use
flow.deploy()
instead of deprecated commands like
build_from_flow
. ### Resources - Refer to the Prefect documentation for the latest migration guides and worker configurations. - See related GitHub Issues. ### Example Here's how you might start a worker from the command line:
Copy code
shell
prefect worker start -q my-queue
For additional code examples or detailed configurations, check the Prefect documentation. This should alleviate issues with your deployments utilizing storage blocks without reverting to deprecated agents.