Fix UJT-related error, add notification placeholders

This commit is contained in:
beeankha
2019-07-19 16:24:35 -04:00
committed by Ryan Petrello
parent 24c5404c25
commit 453e142635
9 changed files with 66 additions and 28 deletions

View File

@@ -486,6 +486,5 @@ class JobNotificationMixin(object):
def send_it(local_nt=nt, local_subject=notification_subject, local_body=notification_body):
def _func():
send_notifications.delay([local_nt.generate_notification(local_subject, local_body).id],
job_id=self.id)
return _func
connection.on_commit(send_it())