ray_env
¶
Functions¶
fastvideo.worker.ray_env.get_env_vars_to_copy
¶
get_env_vars_to_copy(exclude_vars: set[str] | None = None, additional_vars: set[str] | None = None, destination: str | None = None) -> set[str]
Get the environment variables to copy to downstream Ray actors.
Example use cases: - Copy environment variables from RayDistributedExecutor to Ray workers. - Copy environment variables from RayDPClient to Ray DPEngineCoreActor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exclude_vars
|
set[str] | None
|
A set of FastVideo defined environment variables to exclude from copying. |
None
|
additional_vars
|
set[str] | None
|
A set of additional environment variables to copy. If a variable is in both exclude_vars and additional_vars, it will be excluded. |
None
|
destination
|
str | None
|
The destination of the environment variables. |
None
|
Returns: A set of environment variables to copy.