mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -03:30
Merge pull request #1817 from AlanCoding/notification_fail
Do not fail entire notification chain if one fails
This commit is contained in:
@@ -255,7 +255,10 @@ def send_notifications(notification_list, job_id=None):
|
|||||||
notification.error = smart_str(e)
|
notification.error = smart_str(e)
|
||||||
update_fields.append('error')
|
update_fields.append('error')
|
||||||
finally:
|
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)
|
@shared_task(bind=True, queue=settings.CELERY_DEFAULT_QUEUE)
|
||||||
|
|||||||
Reference in New Issue
Block a user