Christopher
10/18/2022, 4:35 PMECSTask(...).save("dev-trial", overwrite=True)
on my dev machine. It shows up in Prefect Cloud.
2. I have created a deployment with prefect deployment build -n dev-trial -q dev -ib ecs-task/dev-trial -a flows/healthcheck.py:healcheck
again from my dev machine
3. I have started a local agent with prefect agent start -q dev
and triggered a job. All works.
4. I have started an agent inside a container and triggered the job, but now it fails with the error KeyError: "No class found for dispatch key 'ecs-task' in registry for type 'Block'."
It seems like in the container, it's not able to resolve the block reference. But isn't that embedded inside the yaml downloaded from Prefect Cloud?Christopher
10/18/2022, 4:39 PMZanie
prefect-aws
isn’t installed, the implementation of the block will not be discoverable.Jamie Baldanza
10/19/2022, 7:13 PMJamie Baldanza
10/19/2022, 7:13 PMJamie Baldanza
10/19/2022, 7:14 PMChristopher
10/19/2022, 7:15 PMJamie Baldanza
10/19/2022, 7:16 PMJamie Baldanza
10/19/2022, 7:16 PMZanie
Zanie
EXTRA_PIP_PACKAGES
environment variable to install it with our default entrypoint e.g. EXTRA_PIP_PACKAGES=prefect-aws