        break
    logging.info(f"Last index reached: {index}")
    num_class = index + 1
    if job_ids:
      jobs.append(submit_job(client, job_ids, start_index, num_class))
      job_ids.clear()

  logging.info(f"{len(jobs)} jobs downloading {total_num_comments} comments...")

  dataframes = [None] * len(jobs)