def get_compute_worker_runs(
        self,
        dataset_id: Optional[str] = None,
    ) -> List[DockerRunData]:
        """Fetches 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 sorted by creation time from the oldest to the latest.

        Examples:
            >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
            >>> client.get_compute_worker_runs()
            [{'artifacts': [...],
             'config_id': '6470a16461e9ce68180a6530',
             'created_at': 1679479418110,
             'dataset_id': '6470a36361e9ce68180a6531',
             'docker_version': '2.6.0',
             ...
             }]
        """
        runs: List[DockerRunData] = list(self.get_compute_worker_runs_iter(dataset_id))
        sorted_runs = sorted(runs, key=lambda run: run.created_at or -1)
        return sorted_runs
Fetches 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 sorted by creation time from the oldest to the latest.

        Examples:
            >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
            >>> client.get_compute_worker_runs()
            [{'artifacts': [...],
             'config_id': '6470a16461e9ce68180a6530',
             'created_at': 1679479418110,
             'dataset_id': '6470a36361e9ce68180a6531',
             'docker_version': '2.6.0',
             ...
             }]
        
lightly/api/api_workflow_compute_worker.py