'Check if the job is finished.
:param job_id: the id of the job
:returns: complete -- bool, result -- string,
rc -- int, status -- string, task -- list of dicts'

def _is_job_finished(self, job_id):

    (complete, rc, status, result, task) = (False, 0, None, None, None)
    job_url = ('/%s/system/job/%s' % (U4V_VERSION, job_id))
    job = self._get_request(job_url, 'job')
    if job:
        status = job['status']
        try:
            (result, task) = (job['result'], job['task'])
        except KeyError:
            pass
        if (status.lower() == SUCCEEDED):
            complete = True
        elif (status.lower() in INCOMPLETE_LIST):
            complete = False
        else:
            (rc, complete) = ((-1), True)
    return (complete, result, rc, status, task)
