Page MenuHomePhabricator

Create a DAG that ensures that email alerting is working
Closed, ResolvedPublic

Description

We need to make sure that Airflow SMTP/email configuration is working, so we'll create a DAG that fails on purpose, to check that we indeed receive the email.

Event Timeline

The dag indeed failed but we got a couple of warnings related to our email configuration:

2024-10-08, 09:30:20 UTC] {logging_mixin.py:190} WARNING - /usr/local/lib/python3.11/site-packages/airflow/utils/email.py:155 RemovedInAirflow3Warning: Fetching SMTP credentials from configuration variables will be deprecated in a future release. Please set credentials using a connection instead.
[2024-10-08, 09:30:20 UTC] {configuration.py:1058} WARNING - section/key [smtp/smtp_user] not found in config

Screenshot 2024-10-08 at 11.31.42.png (528×2 px, 134 KB)
The email was received though.