-
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.
- Loading branch information
1 parent
f9bb7b3
commit 17190a0
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-road-segments', **dag_kwargs) as load_road_segments: | ||
CliBashOperator(cmd='anyway-etl anyway-kubectl-exec python3 main.py process road-segments', | ||
task_id='load-road-segments' | ||
) |