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:
Matthew Jones
2016-09-14 16:06:13 -04:00
parent 0948c35cb8
commit 56d4210047
4 changed files with 9 additions and 13 deletions

View File

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