add CTiT setting for max UI job events

This commit is contained in:
AlanCoding
2017-10-06 16:16:17 -04:00
committed by Matthew Jones
parent f93506fe2c
commit dee4b72303
3 changed files with 13 additions and 2 deletions

View File

@@ -3989,7 +3989,7 @@ class BaseJobEventsList(SubListAPIView):
search_fields = ('stdout',)
def finalize_response(self, request, response, *args, **kwargs):
response['X-UI-Max-Events'] = settings.RECOMMENDED_MAX_EVENTS_DISPLAY_HEADER
response['X-UI-Max-Events'] = settings.MAX_UI_JOB_EVENTS
return super(BaseJobEventsList, self).finalize_response(request, response, *args, **kwargs)