Dimosthenis Schizas
05/05/2021, 3:47 PMnicholas
Dimosthenis Schizas
05/05/2021, 4:02 PMwith Flow(name="sub_states_transformation") as flow:
raw_df = get_subscription_data()
transformed_df = transform_to_subscription_state(raw_df)
load_to_snowflake(transformed_df)
flow.storage = GitHub(
repo="data", path="flows/subscription_states.py",
access_token_secret=PrefectSecret("GITHUB_ACCESS_TOKEN")
)Dimosthenis Schizas
05/05/2021, 4:02 PMnicholas
Dimosthenis Schizas
05/05/2021, 4:16 PMDimosthenis Schizas
05/05/2021, 4:17 PMnicholas
Dimosthenis Schizas
05/05/2021, 4:20 PMgeneric, then have the tasks in a tasks folder and the flows in a separate folder named flows . All folders are in the same level, so when I tried to register the flows in flows directory I got importerrorDimosthenis Schizas
05/05/2021, 4:23 PMModuleNotFoundError: No module named 'tasks'Dimosthenis Schizas
05/05/2021, 4:24 PMprefect register -p flows/ --project "Transformations-Test"nicholas
Dimosthenis Schizas
05/05/2021, 4:51 PMnicholas