mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 20:20:06 -03:30
record a start time for WorkflowApproval jobs
see: https://github.com/ansible/awx/issues/6202
This commit is contained in:
@@ -750,6 +750,8 @@ 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'])
|
||||
return can_start
|
||||
|
||||
def send_approval_notification(self, approval_status):
|
||||
|
||||
Reference in New Issue
Block a user