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

#1134 add data-sources tag to active DAGs #1135

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dags/assets_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ def pull_traffic_signal():
default_args=DEFAULT_ARGS,
max_active_runs=1,
template_searchpath=[os.path.join(AIRFLOW_ROOT, 'assets/rlc/airflow/tasks')],
tags=["bdit_data-sources", "data_pull", "traffic_signals"],
schedule='0 4 * * 1-5')
# minutes past each hour | Hours (0-23) | Days of the month (1-31) | Months (1-12) | Days of the week (0-7, Sunday represented as either/both 0 and 7)

Expand Down
2 changes: 1 addition & 1 deletion dags/citywide_tti_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
default_args=default_args,
schedule=None, # gets triggered by HERE dag
doc_md = doc_md,
tags=["HERE"],
tags=["HERE", "aggregation"],
catchup=False
)

Expand Down
2 changes: 1 addition & 1 deletion dags/ecocounter_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
schedule='5 10 * * MON', # Run at 10:05 AM on Monday
catchup=True,
template_searchpath=os.path.join(repo_path, 'volumes/ecocounter/data_checks'),
tags=["ecocounter", "data_checks"],
tags=["ecocounter", "data_checks", "weekly"],
doc_md=DOC_MD
)
def ecocounter_check_dag():
Expand Down
2 changes: 1 addition & 1 deletion dags/gcc_layers_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create_gcc_puller_dag(dag_id, default_args, name, conn_id):
dag_id=dag_id,
default_args=default_args,
catchup=False,
tags=['gcc', name],
tags=["bdit_data-sources", "gcc", name, "quarterly"],
schedule='0 7 1 */3 *' #'@quarterly'
)
def gcc_layers_dag():
Expand Down
1 change: 1 addition & 0 deletions dags/log_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def create_dag(filepath, doc, start_date, schedule_interval):
# Prevent the same DAG from running concurrently more than once.
max_active_runs=1,
schedule=schedule_interval,
tags=['bdit_data-sources', 'maintenance'],
# This allows us to simplify `create_bash_task` below.
template_searchpath=AIRFLOW_TASKS
)
Expand Down
2 changes: 1 addition & 1 deletion dags/miovision_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
schedule='0 4 * * MON', # Run at 4 AM on Monday
catchup=False,
template_searchpath=os.path.join(repo_path,'volumes/miovision/sql/data_checks'),
tags=["miovision", "data_checks"],
tags=["miovision", "data_checks", "weekly"],
doc_md=DOC_MD
)
def miovision_check_dag():
Expand Down
2 changes: 1 addition & 1 deletion dags/tti_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
default_args=default_args,
schedule=None, # gets triggered by HERE dag
doc_md = doc_md,
tags=["HERE"],
tags=["HERE", "aggregation"],
catchup=False
)

Expand Down
2 changes: 1 addition & 1 deletion dags/vds_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
schedule='0 5 * * FRI', # Run at 5 AM on Friday
catchup=False,
template_searchpath=os.path.join(repo_path,'volumes/vds/sql/select'),
tags=["vds", "data_checks"],
tags=["bdit_data-sources", "vds", "data_checks", "weekly"],
doc_md=DOC_MD
)
def vds_check_dag():
Expand Down
2 changes: 1 addition & 1 deletion dags/vds_pull_vdsdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
os.path.join(repo_path,'dags/sql')
],
doc_md=DOC_MD,
tags=['vds', 'vdsdata', 'data_checks', 'pull', 'detector_inventory'],
tags=["bdit_data-sources", 'vds', 'vdsdata', 'data_checks', 'data_pull', 'detector_inventory'],
schedule='0 4 * * *' #daily at 4am
)
def vdsdata_dag():
Expand Down
2 changes: 1 addition & 1 deletion dags/vds_pull_vdsvehicledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
os.path.join(repo_path,'dags/sql')
],
doc_md=DOC_MD,
tags=['vds', 'vdsvehicledata', 'data_checks', 'pull'],
tags=["bdit_data-sources", 'vds', 'vdsvehicledata', 'data_checks', 'data_pull'],
schedule='5 4 * * *' #daily at 4:05am
)
def vdsvehicledata_dag():
Expand Down
Loading