Files
data-platform/data_platform/definitions.py
Stijnvandenbroek 0b9b408714 feat: expand testing
2026-03-04 22:18:30 +00:00

41 lines
1.1 KiB
Python

from dagster import Definitions
from dagster_dbt import DbtCliResource
from data_platform.assets.dbt import DBT_PROJECT_DIR, dbt_project_assets
from data_platform.assets.ingestion.funda import (
funda_listing_details,
funda_price_history,
funda_search_results,
)
from data_platform.jobs import (
elementary_refresh_job,
funda_ingestion_job,
funda_raw_quality_job,
)
from data_platform.resources import FundaResource, PostgresResource
from data_platform.schedules import (
elementary_refresh_schedule,
funda_ingestion_schedule,
funda_raw_quality_schedule,
)
defs = Definitions(
assets=[
dbt_project_assets,
funda_search_results,
funda_listing_details,
funda_price_history,
],
jobs=[funda_ingestion_job, funda_raw_quality_job, elementary_refresh_job],
schedules=[
funda_ingestion_schedule,
funda_raw_quality_schedule,
elementary_refresh_schedule,
],
resources={
"dbt": DbtCliResource(project_dir=str(DBT_PROJECT_DIR)),
"funda": FundaResource(),
"postgres": PostgresResource(),
},
)