File tree Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 44# This source code is licensed under the BSD-style license found in the
55# LICENSE file in the root directory of this source tree.
66
7- from forge .env import MONARCH_HOSTMESH_V1
8-
97"""Remote and local resource manager for allocation and provisioning."""
108import asyncio
119import functools
2220
2321from forge .controller .launcher import BaseLauncher , get_launcher
2422
25- from forge .env import all_env_vars , FORGE_DISABLE_METRICS
23+ from forge .env import all_env_vars , FORGE_DISABLE_METRICS , MONARCH_HOSTMESH_V1
2624
2725from forge .types import ProcessConfig , ProvisionerConfig
2826
Original file line number Diff line number Diff line change 66
77"""Centralized constants for environment variable names used in the project."""
88
9- import functools
109import os
1110from dataclasses import dataclass
1211from typing import Any
@@ -113,7 +112,6 @@ def get_value(self) -> Any:
113112)
114113
115114
116- @functools .cache
117115def all_env_vars () -> list [EnvVar ]:
118116 """Retrieves all registered environment variable names."""
119117 env_vars = []
Original file line number Diff line number Diff line change @@ -109,12 +109,6 @@ def test_all_env_vars_contains_expected_constants(self):
109109 assert "FORGE_DISABLE_METRICS" in env_var_names
110110 assert "MONARCH_STDERR_LOG" in env_var_names
111111
112- def test_all_env_vars_is_cached (self ):
113- """Test that all_env_vars uses caching."""
114- first_call = all_env_vars ()
115- second_call = all_env_vars ()
116- assert first_call is second_call
117-
118112 def test_all_env_vars_can_iterate_and_get_values (self ):
119113 """Test that all_env_vars can be used to iterate and get values."""
120114 for env_var in all_env_vars ():
You can’t perform that action at this time.
0 commit comments