save approval node start time *before* sending "started" notifications

see: https://github.com/ansible/awx/issues/6267
This commit is contained in:
Ryan Petrello 2020-03-12 14:14:56 -04:00
parent beb8021580
commit 88571f6dcb
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -749,9 +749,9 @@ class WorkflowApproval(UnifiedJob, JobNotificationMixin):
def signal_start(self, **kwargs):
can_start = super(WorkflowApproval, self).signal_start(**kwargs)
self.send_approval_notification('running')
self.started = self.created
self.save(update_fields=['started'])
self.send_approval_notification('running')
return can_start
def send_approval_notification(self, approval_status):