def METHOD_NAME(request, rq_id):
    try:
        queue = django_rq.get_queue(settings.CVAT_QUEUES.EXPORT_DATA.value)
        rq_job = queue.fetch_job(rq_id)
        if rq_job is not None:
            if rq_job.is_queued or rq_job.is_started:
                return Response({"status": rq_job.get_status()})
            elif rq_job.is_finished:
                return Response({"status": rq_job.get_status()})
            else:
                return Response({"status": rq_job.get_status(), "stderr": rq_job.exc_info})
        else:
            return Response({"status": "unknown"})
    except Exception as ex:
        slogger.glob.error("error occurred during checking repository request with rq id {}".format(rq_id), exc_info=True)
        return HttpResponseBadRequest(str(ex))