Call move_expired_jobs_to_failed_queue before returning job_ids.