Ejemplo n.º 1
0
 def process_response(self, request, response):
     """Clear the celery task queue if the response status code is 400 or above"""
     celery_after_request(response, base_status_code_error=400)
     celery_teardown_request()
     return response
Ejemplo n.º 2
0
 def process_response(self, request, response):
     """Clear the celery task queue if the response status code is 400 or above"""
     celery_after_request(response, base_status_code_error=400)
     celery_teardown_request()
     return response