Ensure wait_for_job accepts a job_id as well as a resource