ray.runtime_env.RuntimeEnvConfig
ray.runtime_env.RuntimeEnvConfig#
- class ray.runtime_env.RuntimeEnvConfig(setup_timeout_seconds: int = 600, eager_install: bool = True)[source]#
Bases:
dict
Used to specify configuration options for a runtime environment.
The config is not included when calculating the runtime_env hash, which means that two runtime_envs with the same options but different configs are considered the same for caching purposes.
- Parameters
setup_timeout_seconds – The timeout of runtime environment creation, timeout is in seconds. The value
-1
means disable timeout logic, except-1
,setup_timeout_seconds
cannot be less than or equal to 0. The default value ofsetup_timeout_seconds
is 600 seconds.eager_install – Indicates whether to install the runtime environment on the cluster at
ray.init()
time, before the workers are leased. This flag is set toTrue
by default.
PublicAPI: This API is stable across Ray releases.