-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from ziv17/2665-cities-from-data.gov
Add DAG for loading citiess data from data.gov
- Loading branch information
Showing
2 changed files
with
40 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 | ||
import pendulum | ||
|
||
from anyway_etl_airflow.operators.cli_bash_operator import CliBashOperator | ||
|
||
|
||
dag_kwargs = dict( | ||
default_args={ | ||
'owner': 'airflow', | ||
}, | ||
schedule_interval='@monthly', | ||
catchup=False, | ||
start_date=pendulum.datetime(2024, 1, 1, tz="Asia/Jerusalem"), | ||
) | ||
|
||
|
||
with DAG('load-cities', **dag_kwargs) as load_cities: | ||
CliBashOperator(cmd='anyway-etl anyway-kubectl-exec python3 main.py process cities', | ||
task_id='load-cities' | ||
) |
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 | ||
import pendulum | ||
|
||
from anyway_etl_airflow.operators.cli_bash_operator import CliBashOperator | ||
|
||
|
||
dag_kwargs = dict( | ||
default_args={ | ||
'owner': 'airflow', | ||
}, | ||
schedule_interval='@weekly', | ||
catchup=False, | ||
start_date=pendulum.datetime(2024, 1, 1, tz="Asia/Jerusalem"), | ||
) | ||
|
||
|
||
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' | ||
) |