mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 01:08:48 -03: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)
|
||||
if status == 'successful':
|
||||
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()
|
||||
return status, rc
|
||||
|
||||
Reference in New Issue
Block a user