Created
May 19, 2020 06:20
-
-
Save sairamkrish/d97a59ca6dd04f154d794a983763db99 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
from airflow.utils.dates import days_ago | |
default_args = { | |
'schedule_interval': '#SCHEDULE_INTERVAL', | |
'start_date': days_ago(2), | |
'catchup': False, | |
'owner': 'admin', | |
} | |
dag = DAG( | |
'#DAG_ID', | |
default_args=default_args | |
) | |
def process_task_1(**context): | |
print('Simple hello world') | |
t1 = PythonOperator( | |
task_id="#TASK_ID_1", | |
python_callable=process_task_1, | |
dag=dag, provide_context=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment