Skip to content

Commit

Permalink
fix(pipeline): run mednum intermediate models
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Oct 9, 2023
1 parent 9f6e38e commit 4afd41b
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions pipeline/dags/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,10 @@ def _geocode():
select=f"path:models/staging/sources/**/stg_{dbt_source_id}__*.sql",
)

dbt_run_intermediate = dbt_operator_factory(
task_id="dbt_run_intermediate",
command="run",
select=(
f"path:models/intermediate/sources/**/int_{dbt_source_id}__*.sql"
),
)

dbt_test_intermediate = dbt_operator_factory(
task_id="dbt_test_intermediate",
command="test",
select=(
f"path:models/intermediate/sources/**/int_{dbt_source_id}__*.sql"
),
)
# TODO: add intermediate models here
# this would require to refactor mediation numerique models

(
dbt_run_staging
>> dbt_test_staging
>> dbt_run_intermediate
>> dbt_test_intermediate
)
(dbt_run_staging >> dbt_test_staging)

dbt_staging_tasks_list += [source_task_group]

Expand All @@ -139,7 +121,7 @@ def _geocode():
[
# FIXME: handle odspep as other sources (add to dags/settings.py)
"path:models/staging/sources/odspep",
"path:models/intermediate/sources/odspep",
"path:models/intermediate/sources/**/*",
"path:models/intermediate/int__union_adresses.sql",
"path:models/intermediate/int__union_services.sql",
"path:models/intermediate/int__union_structures.sql",
Expand Down

0 comments on commit 4afd41b

Please sign in to comment.