def list_jobs()

in python-batch/batch.py [0:0]


  def list_jobs(self) -> Iterable[batch_v1.Job]:
      """
      Get a list of all jobs defined in given region.

      Returns:
          An iterable collection of Job object.
      """
      client = batch_v1.BatchServiceClient()

      return client.list_jobs(parent=f"projects/{self.project_id}/locations/{self.config['region']}")