Created
November 7, 2022 04:27
-
-
Save anna-geller/f3da95e18a9bf2a89b60d588a2c4e4cb to your computer and use it in GitHub Desktop.
This file contains hidden or 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(2020, 2, 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