docs: def get_jobs_from_queue(self, queue: str, max_jobs: int) -> List[Job]:
          """Get jobs from a queue."""
          rv = list()
          while len(rv) < max_jobs:
              try:
                  job_json_string = self._get_queue(queue).get(block=False)
              except Empty:
                  break
  
              job = Job.deserialize(job_json_string)
              job.status = JobStatus.RUNNING
              rv.append(job)
  
          return rv