From f42404248cd20b87e35170ac891e2b198a653d1b Mon Sep 17 00:00:00 2001 From: Yuhong Wen Date: Tue, 26 Nov 2024 17:20:41 -0500 Subject: [PATCH] Added handle for the workspace creation. --- nvflare/private/fed/simulator/simulator_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nvflare/private/fed/simulator/simulator_server.py b/nvflare/private/fed/simulator/simulator_server.py index 43512feae6..4863b9b6a7 100644 --- a/nvflare/private/fed/simulator/simulator_server.py +++ b/nvflare/private/fed/simulator/simulator_server.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - +import os from typing import Dict, List, Optional from nvflare.apis.fl_component import FLComponent @@ -145,6 +145,8 @@ def _create_server_engine(self, args, snapshot_persistor): def deploy(self, args, grpc_args=None, secure_train=False): super(FederatedServer, self).deploy(args, grpc_args, secure_train) + os.makedirs(os.path.join(args.workspace, "local"), exist_ok=True) + 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",