Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] bugfix when cluster has no workers and key error happens when f…
…etching num cores (#1745) error in question ``` virtualenv/lib/python3.8/site-packages/daft/runners/ray_runner.py", line 529, in _run_plan cores: int = next(num_cpus_provider) - self.reserved_cores File "/tmp/ray/session_2023-12-14_10-43-11_589430_8/runtime_resources/pip/6268584d5ab6509fe9044d782b6939e786ec5677/virtualenv/lib/python3.8/site-packages/daft/runners/ray_runner.py", line 400, in _ray_num_cpus_provider last_num_cpus_queried = int(ray.cluster_resources()["CPU"]) KeyError: 'CPU' ```
- Loading branch information