Skip to content

Commit

Permalink
modify cluster status checks tests (#1197)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandra Belousov <sashabelousovrh@Alexandras-MacBook-Pro.local>
  • Loading branch information
2 people authored and Alexandra Belousov committed Sep 17, 2024
1 parent a742de3 commit 4569ea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions runhouse/servers/cluster_servlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ async def __init__(
)
collect_gpu_thread.start()


if self.cluster_config.get("has_cuda"):
logger.debug("Creating _periodic_gpu_check thread.")
collect_gpu_thread = threading.Thread(
Expand Down
5 changes: 3 additions & 2 deletions tests/test_servers/test_servlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def test_put_resource(self, test_env_servlet):
assert deserialize_data(resp.data, resp.serialization) == resource.name

@pytest.mark.level("unit")
def test_put_obj_local(self, test_servlet):
def test_put_obj_local(self, test_env_servlet):
resource = Resource(name="local-resource")
resp = ObjStore.call_actor_method(
test_servlet,
test_env_servlet,
"aput_local",
key="key1",
data=serialize_data(resource, "pickle"),
Expand Down Expand Up @@ -78,6 +78,7 @@ def test_get_obj(self, test_env_servlet):
def test_get_obj_remote(self, test_env_servlet):
resp = ObjStore.call_actor_method(
test_env_servlet,

"aget_local",
key="key1",
default=KeyError,
Expand Down

0 comments on commit 4569ea2

Please sign in to comment.