Returning a single `job_id` here does not make sense since you're processing a list of jobs so you could have many job_ids generated. Use a list instead, it could be loaded in the `for` loop above, return the list rather than the last job_id generated in the iteration.