def get_compute_worker_runs_iter(
        self,
        dataset_id: Optional[str] = None,
    ) -> Iterator[DockerRunData]:
        """Returns an iterator over all Lightly Worker runs for the user.

        Args:
            dataset_id:
                Target dataset ID. Optional. If set, only runs with the given dataset
                will be returned.

        Returns:
            Runs iterator.

        """
        if dataset_id is not None:
            return utils.paginate_endpoint(
                self._compute_worker_api.get_docker_runs_query_by_dataset_id,
                dataset_id=dataset_id,
            )
        else:
            return utils.paginate_endpoint(
                self._compute_worker_api.get_docker_runs,
            )
Returns an iterator over all Lightly Worker runs for the user.

        Args:
            dataset_id:
                Target dataset ID. Optional. If set, only runs with the given dataset
                will be returned.

        Returns:
            Runs iterator.

        
lightly/api/api_workflow_compute_worker.py