Created
November 8, 2022 21:35
-
-
Save anna-geller/0bcb67f37a1ef695c56959df348f8327 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import date | |
from prefect import flow | |
from flows.transformation.jaffle_shop.dbt_run_from_manifest import dbt_jaffle_shop | |
from flows.ingestion.ingest_jaffle_shop import raw_data_jaffle_shop | |
from flows.analytics.dashboards import dashboards | |
from flows.ml.sales_forecast import sales_forecast | |
@flow | |
def jaffle_shop_ingest_transform( | |
start_date: date = date(2022, 11, 1), # parametrized for backfills | |
end_date: date = date.today(), | |
dataset_size: int = 10_000, | |
): | |
raw_data_jaffle_shop(start_date, end_date, dataset_size) | |
dbt_jaffle_shop() | |
dashboards() | |
sales_forecast() | |
if __name__ == "__main__": | |
jaffle_shop_ingest_transform() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment