hey, I've deployed a deployment that pulls flow fr...
# ask-community
g
hey, I've deployed a deployment that pulls flow from GitLab and runs it on a k8s worker. when the job gets executed, I get the following error:
Copy code
No class found for dispatch key 'gitlab-repository' in registry for type 'Block',
has someone solved this issue?
b
Hi Gil! When you created the deployment, how did you specify the GitLab repo to pull from? Is it similar to the deployment examples shown here?
a
Make sure that you have the
prefect-gitlab
dependency installed
b
Ah yes also very important ^ thank you Antreas 🙌
g
thanks for helping guys, the issue was indeed related to the prefect-gitlab dependency - my worker didn't have the prefect-gitlab dependency. i had to add
Copy code
job_variables={"env": {"EXTRA_PIP_PACKAGES": "prefect-gitlab"}},
into my deploy definition then it worked
so full defintion looks like that (in case it helps anyone) -
Copy code
my_flow.from_source(
        source=source,
        entrypoint="prefect-flows/sample_run_remote.py:my_flow",
    ).deploy(
        name="my-gitlab-deployment",
        work_pool_name="gke_runner",
        job_variables={"env": {"EXTRA_PIP_PACKAGES": "prefect-gitlab"}},
        cron="* * * * *",
    )