Waits for job changes.

    @type job_id: int
    @param job_id: Job ID for which to wait

def WaitForJobChange(r, job_id, fields, prev_job_info, prev_log_serial):
    """
    Waits for job changes.

    @type job_id: int
    @param job_id: Job ID for which to wait
    """

    body = {
        "fields": fields,
        "previous_job_info": prev_job_info,
        "previous_log_serial": prev_log_serial,
    }

    return r.request("get", "/2/jobs/%s/wait" % job_id, content=body)