mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 00:07:40 -02:30
AC-990 Updated callback plugin and related task to prevent missed/duplicate job events, catch exceptions and retry. Fixed task run_pexect method so that canceling a job will work.
This commit is contained in:
@@ -731,8 +731,8 @@ class JobEvent(BaseModel):
|
||||
update_fields.append('host')
|
||||
except (Host.DoesNotExist, AttributeError):
|
||||
pass
|
||||
self.play = self.event_data.get('play', '')
|
||||
self.task = self.event_data.get('task', '')
|
||||
self.play = self.event_data.get('play', '').strip()
|
||||
self.task = self.event_data.get('task', '').strip()
|
||||
self.parent = self._find_parent()
|
||||
update_fields.extend(['play', 'task', 'parent'])
|
||||
# Manually perform auto_now_add and auto_now logic (to allow overriding
|
||||
|
||||
Reference in New Issue
Block a user