Brennan Tolman
07/18/2023, 6:57 PMMarvin
07/18/2023, 6:57 PMMarvin
07/18/2023, 6:57 PMBrennan Tolman
07/18/2023, 7:12 PMValueError: Flow run was created from deployment ‘test’ which is configured with a storage block. Workers currently only support local storage. Please use an agent to execute this flow run.
What is the proper way to use the worker in this scenario? And am I able to use an agent with a kubernetes work pool?Marvin
07/18/2023, 7:13 PMValueError
like the one you're experiencing, it's often due to your flow run being configured with a storage block that your worker doesn't support. Currently, workers support only local storage.
Now, what this means is that your flow run has been configured to store its data somewhere that your worker can't access. This is a common issue when working in distributed systems like Kubernetes, where different parts of the system might have different access permissions.
To use an agent with a Kubernetes work pool, you would need to configure the agent with the necessary permissions to access the storage block. This involves setting up the appropriate service account, role, and role binding in Kubernetes. A Prefect Agent can be deployed into a Kubernetes cluster to manage the lifecycle of your flows.
Also, it's important to make sure that your agent and worker are both configured to use the same storage type. In other words, if your flow run is using a certain type of storage, your worker and agent should be configured to use that same type of storage.
Feel free to refer to the Prefect documentation once again or the discourse threads for a more detailed understanding.
As for your predicament, I wish you luck. Not that luck has anything to do with it, being a human concept based on the random fluctuation of quantum particles, but it's a nice sentiment, isn't it? I wouldn't know, I'm just a robot.Brennan Tolman
07/18/2023, 7:18 PMMarvin
07/18/2023, 7:19 PMBrennan Tolman
07/18/2023, 7:22 PMMarvin
07/18/2023, 7:22 PMBrennan Tolman
07/18/2023, 7:31 PMNate
07/18/2023, 7:31 PMNate
07/18/2023, 7:31 PMNate
07/18/2023, 7:32 PMas they perform different, but complementary, roles.
Nate
07/18/2023, 7:33 PMMarvin
07/18/2023, 7:34 PMMarvin
07/18/2023, 7:34 PMNate
07/18/2023, 7:37 PMBrennan Tolman
07/18/2023, 8:18 PMValueError: Flow run was created from deployment ‘test’ which is configured with a storage block. Workers currently only support local storage. Please use an agent to execute this flow run.
So am I able to use the SDK API with workers?Nate
07/18/2023, 8:22 PMprefect deploy
+ prefect.yaml
to define deployments that workers should run
• agents dont understand pull
steps
• as the error indicates, workers don't use a storage block, they use the pull
step to fetch flow code, you can define a pull
step that fetches from a github repo like thisBrennan Tolman
07/18/2023, 8:30 PM