def get_task(self, jobid, taskid):
    """Return a ThriftTaskInProgress"""
    try:
      tip = self.client.getTask(self.thread_local.request_context, taskid)
    except JobNotFoundException, e:
      raise StructuredException(code="JT_JOB_NOT_FOUND", message="Could not find job %s on JobTracker." % jobid.asString, data=jobid)
    except TaskNotFoundException, e:
      raise StructuredException(code="JT_TASK_NOT_FOUND", message="Could not find task %s on JobTracker." % taskid.asString, data=taskid)
    self._fixup_task_in_progress(tip)
    return tip
dataset/ETHPy150Open cloudera/hue/desktop/libs/hadoop/src/hadoop/job_tracker.py/LiveJobTracker.get_task/original