Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Congestion Network 2.0: Automate Data Aggregation #62

Open
chmnata opened this issue Aug 30, 2022 · 2 comments
Open

Congestion Network 2.0: Automate Data Aggregation #62

chmnata opened this issue Aug 30, 2022 · 2 comments
Assignees

Comments

@chmnata
Copy link
Collaborator

chmnata commented Aug 30, 2022

No description provided.

@chmnata chmnata self-assigned this Aug 30, 2022
@chmnata
Copy link
Collaborator Author

chmnata commented Aug 30, 2022

Automate DAG needs to run the following functions

  • generate_network_daily
  • generate_network_monthly (aggregate from daily)
  • generate_network_weekly (aggregate from daily)

So the DAG will use an external sensor to wait for pull_here, then runs the generate daily function, after that, check for the current date, and check if all the necessary dates are in the daily table, if so run the monthly and weekly functions on a weekly and monthly basis (or if we have airflow 2 use timetables).

chmnata added a commit that referenced this issue Sep 9, 2022
chmnata added a commit that referenced this issue Sep 9, 2022
chmnata added a commit that referenced this issue Sep 9, 2022
chmnata added a commit that referenced this issue Sep 9, 2022
chmnata added a commit that referenced this issue Sep 9, 2022
@chmnata
Copy link
Collaborator Author

chmnata commented Sep 15, 2022

Final DAG flow:
Wait for here -> aggregate daily values -> Check day of month -> If its the first day of the month, check to see if the previous month's data are all available -> aggregate monthly values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant