Last active
November 16, 2019 17:44
-
-
Save aawgit/0753b3ef1d715257e442ceafbc8583d3 to your computer and use it in GitHub Desktop.
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
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
def error_function(): | |
raise Exception('Something wrong') | |
t2 = PythonOperator( | |
task_id='failing_task', | |
python_callable=error_function, | |
email_on_failure=True, | |
emai='[email protected] | |
dag=dag, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment