From 5af9a2fb3a0b51d6bec2f84d21ae02f5020ddb58 Mon Sep 17 00:00:00 2001 From: Yuhong Wen Date: Tue, 26 Nov 2024 17:24:39 -0500 Subject: [PATCH] Changed to use SiteType.SERVER. --- nvflare/private/fed/simulator/simulator_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvflare/private/fed/simulator/simulator_server.py b/nvflare/private/fed/simulator/simulator_server.py index 4863b9b6a7..69d1f16df1 100644 --- a/nvflare/private/fed/simulator/simulator_server.py +++ b/nvflare/private/fed/simulator/simulator_server.py @@ -15,7 +15,7 @@ from typing import Dict, List, Optional from nvflare.apis.fl_component import FLComponent -from nvflare.apis.fl_constant import FLContextKey, ReservedKey, ReservedTopic, ServerCommandKey +from nvflare.apis.fl_constant import FLContextKey, ReservedKey, ReservedTopic, ServerCommandKey, SiteType from nvflare.apis.fl_context import FLContext from nvflare.apis.shareable import ReturnCode, Shareable, make_reply from nvflare.apis.workspace import Workspace @@ -149,7 +149,7 @@ def deploy(self, args, grpc_args=None, secure_train=False): os.makedirs(os.path.join(args.workspace, "startup"), exist_ok=True) workspace = Workspace(args.workspace, "server", args.config_folder) run_manager = RunManager( - server_name="server", + server_name=SiteType.SERVER, engine=self.engine, job_id="", workspace=workspace,