Purge event res dict if it is over a certain size

Also purge/update some old settings values
This commit is contained in:
Matthew Jones
2016-12-14 15:05:28 -05:00
parent b85c98afd2
commit a61e729ebb
3 changed files with 9 additions and 13 deletions

View File

@@ -809,6 +809,7 @@ class RunJob(BaseTask):
env['REST_API_URL'] = settings.INTERNAL_API_URL
env['REST_API_TOKEN'] = job.task_auth_token or ''
env['TOWER_HOST'] = settings.TOWER_URL_BASE
env['MAX_EVENT_RES'] = settings.MAX_EVENT_RES_DATA
env['CALLBACK_QUEUE'] = settings.CALLBACK_QUEUE
env['CALLBACK_CONNECTION'] = settings.BROKER_URL
if getattr(settings, 'JOB_CALLBACK_DEBUG', False):