mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
Implement Performance improvements shown in #3492
* Make callback workers tunable * Disable callback worker recycling - doesn't appear to be needed anymore * Tweak pexpect behavior by limiting its read buffer size and search window * Use copy instead of deepcopy for job event callback emitter censor
This commit is contained in:
@@ -38,7 +38,7 @@ import os
|
||||
import pwd
|
||||
import urlparse
|
||||
import re
|
||||
from copy import deepcopy
|
||||
from copy import copy
|
||||
|
||||
# Requests
|
||||
import requests
|
||||
@@ -228,7 +228,7 @@ class BaseCallbackModule(object):
|
||||
|
||||
def _log_event(self, event, **event_data):
|
||||
if 'res' in event_data:
|
||||
event_data['res'] = censor(deepcopy(event_data['res']))
|
||||
event_data['res'] = censor(copy(event_data['res']))
|
||||
|
||||
if self.callback_consumer_port:
|
||||
self._post_job_event_queue_msg(event, event_data)
|
||||
|
||||
Reference in New Issue
Block a user