fix(pipeline): invoke dbt via python module to avoid Fusion shadowing
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 53s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 56s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 2m0s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 53s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 56s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 2m0s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
The standalone dbt Fusion binary (dbt-core 2.x) on PATH shadows the pip-installed classic dbt-postgres ~=1.10 and rejects the Postgres adapter (dbt1005), breaking every DAG's dbt_build task. Invoke dbt via `python -m dbt.cli.main` in the DAGs and the Dockerfile dbt deps step so the classic Postgres-capable engine is always used regardless of PATH. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,11 @@ except ImportError:
|
||||
|
||||
PIPELINE_DIR = "/opt/pipeline"
|
||||
MELTANO_BIN = "meltano"
|
||||
DBT_BIN = "dbt"
|
||||
# Invoke dbt via the Python module rather than a bare `dbt` on PATH. The
|
||||
# standalone dbt Fusion binary (dbt-core 2.x) shadows the pip-installed
|
||||
# classic engine on some images and rejects the Postgres adapter
|
||||
# (dbt1005). The module form always resolves to dbt-postgres ~=1.10.
|
||||
DBT_BIN = "python -m dbt.cli.main"
|
||||
|
||||
default_args = {
|
||||
"owner": "school-compare",
|
||||
|
||||
Reference in New Issue
Block a user