Airflow - Proper way to handle DAGs callbacks
问题 I have a DAG and then whenever it success or fails, I want it to trigger a method which posts to Slack. My DAG args is like below: default_args = { [...] 'on_failure_callback': slack.slack_message(sad_message), 'on_success_callback': slack.slack_message(happy_message), [...] } And the DAG definition itself: dag = DAG( dag_id = dag_name_id, default_args=default_args, description='load data from mysql to S3', schedule_interval='*/10 * * * *', catchup=False ) But when I check Slack there is more