Michael Bøcker-Larsen
10/07/2024, 8:05 AMKeyError: "No class found for dispatch key 'github-repository' in registry for type 'Block'."
The same happens if the worker is a process (I think the reason here is that the process is not running within my virtual env).
But not when running the flow in a non-worker.
from prefect import flow
from prefect_github.repository import GitHubRepository
flow.from_source(
source=GitHubRepository.load("app-backend-data"),
entrypoint="flows/provider/process_provider.py:process_provider",
).deploy(name="process-provider", work_pool_name="docker-worker")
My worker is started like this
prefect worker start --pool "docker-worker" --type docker
So my source is code from GitHub
The worker is docker
But I haven't specified an image on the deployment (should I?)