Пример #1
0
            def GetJob(self, request, context):

                self._call_count["GetJob"] += 1
                return GetJobResponse(job=JobProto(
                    id="test",
                    type=JobType.RETRIEVAL_JOB,
                    status=self._job_statuses.pop(),
                    retrieval=JobProto.RetrievalJobMeta(output_location="foo"),
                ))
Пример #2
0
 def GetJob(self, request, context):
     """Get details of a single job"""
     job = get_job_by_id(request.job_id, client=self.client)
     return GetJobResponse(job=_job_to_proto(job))