Skip to content

Commit

Permalink
OS-7748. Update bumi_task_execution_failed email template
Browse files Browse the repository at this point in the history
  • Loading branch information
ek-hystax authored Aug 15, 2024
1 parent 16dfaa6 commit fcc3f86
Show file tree
Hide file tree
Showing 3 changed files with 508 additions and 506 deletions.
4 changes: 3 additions & 1 deletion bumiworker/bumiworker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,15 @@ def _execute(self):
class SetFailedNotifiable(SetFailed):
def send_failure_service_email(self, organization_id, reason,
failed_modules):
_, org = self.rest_cl.organization_get(organization_id)
recipient = self.config_cl.optscale_error_email_recipient()
if not recipient:
return
subject = '[%s] Bumi task execution failed' % self.config_cl.public_ip()
template_params = {
'texts': {
'organization': {'id': organization_id},
'organization': {'id': organization_id,
'name': org['name']},
'reason': reason,
'failed_modules': failed_modules
}}
Expand Down
Loading

0 comments on commit fcc3f86

Please sign in to comment.