def is_job_failed(job_status):
    """
    Check job status on failure
    :param job_status: Job status to verify
    :return: True - job has failed; False - job has finished successfully
    """
    job_failed_statuses = ['FAILED', 'COMPLETED_WITH_ERRORS']
    if job_status['status'] in job_failed_statuses:
        return True
    return False