code: def _view_dequeue(self, queue_type):
          
          response = {
              'status': 'failure'
          }
  
          request_data = {
              'queue_type': queue_type
          }
          try:
              response = self.sq.dequeue(**request_data)
              if response['status'] == 'failure':
                  return jsonify(**response), 404
          except Exception, e:
              response['message'] = e.message
              return jsonify(**response), 400
  
          return jsonify(**response)
docs: Dequeues a job from SharQ.