mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #1817 from AlanCoding/notification_fail
Do not fail entire notification chain if one fails
This commit is contained in:
commit
14d10a93cc
@ -255,7 +255,10 @@ def send_notifications(notification_list, job_id=None):
|
||||
notification.error = smart_str(e)
|
||||
update_fields.append('error')
|
||||
finally:
|
||||
notification.save(update_fields=update_fields)
|
||||
try:
|
||||
notification.save(update_fields=update_fields)
|
||||
except Exception as e:
|
||||
logger.exception(six.text_type('Error saving notification {} result.').format(notification.id))
|
||||
|
||||
|
||||
@shared_task(bind=True, queue=settings.CELERY_DEFAULT_QUEUE)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user