'Return a ThriftTaskInProgress'

def get_task(self, jobid, taskid):

    try:
        tip = self.client.getTask(self.thread_local.request_context, taskid)
    except JobNotFoundException as e:
        raise StructuredException(code='JT_JOB_NOT_FOUND', message=('Could    not    find    job    %s    on    JobTracker.' % jobid.asString), data=jobid)
    except TaskNotFoundException as 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
