'Gets a CloudML job based on the job name.
:return: CloudML job object if succeed.
:rtype: dict
Raises:
apiclient.errors.HttpError: if HTTP error is returned from server'

def _get_job(self, project_id, job_id):

    job_name = 'projects/{}/jobs/{}'.format(project_id, job_id)
    request = self._cloudml.projects().jobs().get(name=job_name)
    while True:
        try:
            return request.execute()
        except errors.HttpError as e:
            if (e.resp.status == 429):
                time.sleep(30)
            else:
                logging.error('Failed    to    get    CloudML    job:    {}'.format(e))
                raise
