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:
Chris Church
2014-02-04 17:38:31 -05:00
parent d08319100d
commit 91cc144e87
3 changed files with 86 additions and 38 deletions

View File

@@ -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