mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 16:13:54 +08:00
[autoscaler] cover autofilling resources with try except. (#12222)
Co-authored-by: Ameer Haj Ali <ameerhajali@ameers-mbp.lan> Co-authored-by: Alex Wu <alex@anyscale.io> Co-authored-by: Alex Wu <itswu.alex@gmail.com> Co-authored-by: Eric Liang <ekhliang@gmail.com> Co-authored-by: Ameer Haj Ali <ameerhajali@Ameers-MacBook-Pro.local>
This commit is contained in:
@@ -270,8 +270,15 @@ def _bootstrap_config(config: Dict[str, Any],
|
||||
|
||||
cli_logger.print("Checking {} environment settings",
|
||||
_PROVIDER_PRETTY_NAMES.get(config["provider"]["type"]))
|
||||
|
||||
config = provider_cls.fillout_available_node_types_resources(config)
|
||||
try:
|
||||
config = provider_cls.fillout_available_node_types_resources(config)
|
||||
except Exception as exc:
|
||||
if cli_logger.verbosity > 2:
|
||||
logger.exception("Failed to autodetect node resources.")
|
||||
else:
|
||||
cli_logger.warning(
|
||||
f"Failed to autodetect node resources: {str(exc)}. "
|
||||
"You can see full stack trace with higher verbosity.")
|
||||
|
||||
# NOTE: if `resources` field is missing, validate_config for non-AWS will
|
||||
# fail (the schema error will ask the user to manually fill the resources)
|
||||
|
||||
Reference in New Issue
Block a user