with DAG(
dag_id='name',
default_args=default_args,
description='description',
schedule=None,
start_date=datetime.now() - timedelta(days=365),
catchup=False,
max_active_runs=1,
on_failure_callback=[
send_slack_webhook_notification(
slack_webhook_conn_id="slackwebhook",
text="The dag `{{ dag.dag_id }}` failed"
)
]
) as dag:
def fail_task():
raise ValueError("This task fails on purpose.")
task1 = PythonOperator(
task_id='fail_task',
python_callable=fail_task
)
Apache Airflow version
3.0.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Slack notifications stopped working after upgrade to 3.0.1
What you think should happen instead?
Should send a slack notification to the channel
How to reproduce
Operating System
debian
Versions of Apache Airflow Providers
apache-airflow-providers-slack 9.0.5
Deployment
Docker-Compose
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct