Iterate over jobs

async AsyncCogniteClient.hosted_extractors.jobs.__call__(
chunk_size: int | None = None,
limit: int | None = None,
) AsyncIterator[Job] | AsyncIterator[JobList]

Iterate over jobs

Fetches jobs as they are iterated over, so you keep a limited number of jobs in memory.

Parameters:
  • chunk_size (int | None) – Number of jobs to return in each chunk. Defaults to yielding one job a time.

  • limit (int | None) – Maximum number of jobs to return. Defaults to returning all items.

Yields:

Job | JobList – yields Job one by one if chunk_size is not specified, else JobList objects.