def get(self, request, **kwargs):
        """
        Returns the result of the job with the supplied ID.

        If the job could not be found or the job has not completed yet, this
        will return a 404.

        Since different jobs are started from different async endpoints, there
        might be some post-job processing to do on the results and the
        intended response object.

        NOTE: Given no knowledge of the method for storing the job result,
        this method might also return a 404 if the job completed in the past
        but the result has been culled because the result expired or was
        replaced such as is the case in some in-memory storage systems. This
        method makes no assumption of that as the job management is handled
        by Avocado and this method should be independent of the async system
        used for creating and running jobs.
        """
        result = request.instance.result

        if result is None:
            raise Http404

        return process_results(
            request, request.instance.meta['result_processor'], result)
dataset/ETHPy150Open chop-dbhi/serrano/serrano/resources/jobs.py/JobResultResource.get/original