Skip to content

Commit

Permalink
run mbt only in current month
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Dec 2, 2019
1 parent d780be1 commit 6beadf2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions dags/dashboard_subdags.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@ def generate_uuid():
dag=monthly_dag
)

create_mbt = BashOperator(
task_id='create_mbt_for_month',
bash_command=run_query_template,
params={'query': 'create_mbt_for_month'},
dag=monthly_dag
)

get_agg_id >> create_aggregation_record >> daily_attendance
daily_attendance >> stage_1_tasks
daily_attendance >> update_months_table
Expand All @@ -184,7 +177,6 @@ def generate_uuid():
agg_ccs_record >> agg_awc_table
agg_awc_table >> ls_tasks
ls_tasks >> agg_ls_table
agg_awc_table >> create_mbt

if interval == 0:
aggregate_awc_daily = BashOperator(
Expand All @@ -194,5 +186,12 @@ def generate_uuid():
dag=monthly_dag
)
agg_awc_table >> aggregate_awc_daily
create_mbt = BashOperator(
task_id='create_mbt_for_month',
bash_command=run_query_template,
params={'query': 'create_mbt_for_month'},
dag=monthly_dag
)
agg_awc_table >> create_mbt

return monthly_dag

0 comments on commit 6beadf2

Please sign in to comment.