mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 03:45:01 -02:30
Add feature for notifications to trigger on job start
This commit is contained in:
@@ -587,4 +587,4 @@ class TaskManager():
|
||||
|
||||
# Operations whose queries rely on modifications made during the atomic scheduling session
|
||||
for wfj in WorkflowJob.objects.filter(id__in=finished_wfjs):
|
||||
wfj.send_notification_templates('succeeded' if wfj.status == 'successful' else 'failed')
|
||||
wfj.send_notification_templates('started' if wfj.status == 'running' else ('succeeded' if wfj.status == 'successful' else 'failed'))
|
||||
|
||||
Reference in New Issue
Block a user