mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
send an EOF event if isolated dispatch fails
This commit is contained in:
@@ -332,5 +332,10 @@ class IsolatedManager(object):
|
|||||||
status, rc = self.dispatch(playbook, module, module_args)
|
status, rc = self.dispatch(playbook, module, module_args)
|
||||||
if status == 'successful':
|
if status == 'successful':
|
||||||
status, rc = self.check()
|
status, rc = self.check()
|
||||||
|
else:
|
||||||
|
# emit an EOF event
|
||||||
|
event_data = {'event': 'EOF', 'final_counter': 0}
|
||||||
|
event_data.setdefault(self.event_data_key, self.instance.id)
|
||||||
|
CallbackQueueDispatcher().dispatch(event_data)
|
||||||
self.cleanup()
|
self.cleanup()
|
||||||
return status, rc
|
return status, rc
|
||||||
|
|||||||
Reference in New Issue
Block a user