Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Reduce visual footprint of DAG Alerts in Slack (#4071)
Nico Epp6e52e5aa1a30
diff --git a/catalog/dags/common/slack.py b/catalog/dags/common/slack.pyindex a671b96bb..f0f4b4e4e 100644--- a/catalog/dags/common/slack.py+++ b/catalog/dags/common/slack.py@@ -396,15 +396,15 @@ def on_failure_callback(context: dict) -> None:log.info("Forgoing Slack alert due to upstream failures")returnexception_message = f"""-*Exception*: {exception}*Exception Type*: `{exception.__class__.__module__}.{exception.__class__.__name__}`+*Exception*: {exception}"""message = f"""*DAG*: `{dag_id}`*Task*: `{task_id}`*Logical Date*: {logical_date.strftime('%Y-%m-%dT%H:%M:%SZ')}-*Log*: {ti.log_url}+*Log*: <{ti.log_url}|View Logs>{exception_message}"""send_alert(