Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Disable email on failure by default (#788)

Madison Swain-Bowdend678dc7add4e
diff --git a/openverse_catalog/dags/common/constants.py b/openverse_catalog/dags/common/constants.py
index 7e531be98..c4b5bbf28 100644
--- a/openverse_catalog/dags/common/constants.py
+++ b/openverse_catalog/dags/common/constants.py
@@ -17,6 +17,9 @@ DAG_DEFAULT_ARGS = {
"owner": "data-eng-admin",
"depends_on_past": False,
"start_date": datetime(2019, 1, 15),
+ # Failure emails are on by default but the Slack failure callback will be used in
+ # place of them if the DAG default args are used.
+ "email_on_failure": False,
"email_on_retry": False,
"email": [CONTACT_EMAIL],
"retries": 2,