Hi, I’m trying to move my Prefect 2 setup to an Azure serverless setup. The Prefect Agent is deployed in an Azure Container Instance (ACI). Flows are ran with an azure-container-instance-job block as infra. When I run the agent locally the flow properly executes, but I get “*KeyError: “No class found for dispatch key ‘azure-container-instance-job’ in registry for type ‘Block’.“”,* when executing through the container-hosted agent (image prefecthq/prefect:2-python3.9) . Any clues?
✅ 1
k
Kelvin DeCosta
12/26/2022, 1:50 PM
Never used Azure, but my bet would be on the
prefect
blocks not being registered.
The hosted agent must run something that looks like this:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.