ray.job_config.JobConfig.set_runtime_env#

JobConfig.set_runtime_env(runtime_env: Dict[str, Any] | RuntimeEnv | None, validate: bool = False) None[source]#

Modify the runtime_env of the JobConfig.

We don’t validate the runtime_env by default here because it may go through some translation before actually being passed to C++ (e.g., working_dir translated from a local directory to a URI).

Parameters:
  • runtime_env – A runtime environment dictionary.

  • validate – Whether to validate the runtime env.