Adam
03/24/2023, 5:27 PMtoo many values to unpack (expected 2)
error, anyone know what I might be doing wrong? im on version 2.8.6Nate
03/24/2023, 7:20 PMprefect deployment build
command?Adam
03/24/2023, 7:20 PMprefect deployment build <https://github.com/.../docker_prefect_test.py:run_dbt> \
-n dbt-deploy-docker \
-sb github-repository/git-repo \
-ib docker-container/prefect-docker \
-o prefect-docker-deployment \
--apply
Nate
03/24/2023, 7:24 PMlocal_filepath_containing_flow:flow_fn
, so when this happens, a link wouldn't workAdam
03/24/2023, 7:25 PMNate
03/24/2023, 7:30 PMdeployment build
from that repo or if you clone the repo in CI or something) and then when your deployment runs and clones your repo (via your github storage block) it will know where to look relative your repo root. so in your case, if you're at your local bi_etl
repo root you can do
prefect deployment build prefect/docker_prefect_test.py:run_dbt \
-n dbt-deploy-docker \
-sb github-repository/git-repo \
-ib docker-container/prefect-docker \
-o prefect-docker-deployment \
--apply
assuming your project is organized like
bi_etl/
prefect/
docker_prefect_test.py
Adam
03/24/2023, 7:31 PMNate
03/24/2023, 7:32 PMAdam
03/24/2023, 7:33 PMKeyError: "No class found for dispatch key 'github-repository' in registry for type 'Block'."
error when I run the deployNate
03/24/2023, 8:18 PMgithub-repository
is a block that's defined in the prefect-github
collection (a separate pypi package that would need to be installed where your agent runs)
there is another block github
that I would recommend using instead - its a part of prefect core, so nothing else to install. I will go ahead and raise this so we can remove github-repository
from the block catalogue here since that is definitely confusingAdam
03/24/2023, 8:21 PMNate
03/24/2023, 10:11 PMAdam
03/27/2023, 1:09 PM