mirror of
https://github.com/wassname/ray.git
synced 2026-07-16 11:21:10 +08:00
Fix windows test (#13811)
This commit is contained in:
@@ -86,6 +86,14 @@ def validate_config(config: Dict[str, Any]) -> None:
|
||||
raise ValueError(
|
||||
"`head_node_type` must be one of `available_node_types`.")
|
||||
|
||||
sum_min_workers = sum(
|
||||
config["available_node_types"][node_type].get("min_workers", 0)
|
||||
for node_type in config["available_node_types"])
|
||||
if sum_min_workers > config["max_workers"]:
|
||||
raise ValueError(
|
||||
"The specified global `max_workers` is smaller than the "
|
||||
"sum of `min_workers` of all the available node types.")
|
||||
|
||||
|
||||
def prepare_config(config):
|
||||
with_defaults = fillout_defaults(config)
|
||||
|
||||
Reference in New Issue
Block a user