forked from data-for-change/anyway-etl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DAG for loading streets data from data.gov
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from airflow import DAG | ||
from airflow.utils.dates import days_ago | ||
|
||
from anyway_etl_airflow.operators.cli_bash_operator import CliBashOperator | ||
|
||
|
||
dag_kwargs = dict( | ||
default_args={ | ||
'owner': 'airflow', | ||
}, | ||
schedule_interval=None, | ||
catchup=False, | ||
start_date=days_ago(1), | ||
) | ||
|
||
|
||
with DAG('load-streets', **dag_kwargs) as load_streets: | ||
CliBashOperator(cmd='anyway-etl anyway-kubectl-exec python3 main.py process streets', | ||
task_id='load-streets' | ||
) |