Use job_ids to check for pending tasks