docs: def enqueue_jobs(self, jobs: Iterable[Job]):
          """Enqueue a batch of jobs."""
          for job in jobs:
              if job.should_start:
                  job.status = JobStatus.QUEUED
                  queue = self._get_queue(job.queue)
                  queue.put(job.serialize())
              else:
                  with self._lock:
                      job.status = JobStatus.WAITING
                      self._future_jobs.append(job.serialize())
                      self._future_jobs.sort(key=lambda j: Job.deserialize(j).at)
          self._something_happened.set()