code: def _view_finish(self, queue_type, queue_id, job_id):
          
          response = {
              'status': 'failure'
          }
          request_data = {
              'queue_type': queue_type,
              'queue_id': queue_id,
              'job_id': job_id
          }
  
          try:
              response = self.sq.finish(**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: Marks a job as finished in SharQ.