Skip to content

Commit

Permalink
Update email notification recipients (#1090)
Browse files Browse the repository at this point in the history
* Update email notification recipients

* Fix formatting

* Also send failure notifications to debug list
  • Loading branch information
hqpho authored Oct 18, 2024
1 parent e48627d commit fd21052
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions import-automation/executor/app/executor/import_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
from app.service import import_service

# Email address for status messages.
_SUCCESS_EMAIL_ADDR = 'datacommons+release@google.com'
_FAILURE_EMAIL_ADDR = 'datacommons-alerts+importautomation@google.com'
_DEBUG_EMAIL_ADDR = 'datacommons-debug+imports@google.com'
_ALERT_EMAIL_ADDR = 'datacommons-alerts+imports@google.com'

_SEE_LOGS_MESSAGE = (
'Please find logs in the Logs Explorer of the GCP project associated with'
Expand Down Expand Up @@ -300,7 +300,7 @@ def _import_one(
self.notifier.send(
subject=f'Import Automation Success - {import_name}',
body=msg,
receiver_addresses=[_SUCCESS_EMAIL_ADDR],
receiver_addresses=[_DEBUG_EMAIL_ADDR],
)

except Exception as exc:
Expand All @@ -312,7 +312,7 @@ def _import_one(
self.notifier.send(
subject=f'Import Automation Failure - {import_name}',
body=msg,
receiver_addresses=[_FAILURE_EMAIL_ADDR],
receiver_addresses=[_ALERT_EMAIL_ADDR, _DEBUG_EMAIL_ADDR],
)
raise exc

Expand Down

0 comments on commit fd21052

Please sign in to comment.