From 826742a635528039b31947bd3ca5a415f8a04a0c Mon Sep 17 00:00:00 2001 From: Fredrik Wrede Date: Tue, 27 Jun 2023 13:20:01 +0200 Subject: [PATCH] Bugfix | Disable global model deletion (#475) --- fedn/fedn/network/combiner/round.py | 4 ---- fedn/fedn/network/dashboard/restservice.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/fedn/fedn/network/combiner/round.py b/fedn/fedn/network/combiner/round.py index 4a2436fe9..6ae7a92cc 100644 --- a/fedn/fedn/network/combiner/round.py +++ b/fedn/fedn/network/combiner/round.py @@ -362,10 +362,6 @@ def run(self, polling_interval=1.0): round_meta['status'] = "Success" round_meta['name'] = self.server.id self.server.tracer.set_round_combiner_data(round_meta) - if round_config['delete_models_storage'] == 'True': - self.modelservice.models.delete(round_config['model_id']) - self.server.report_status("ROUNDCONTROL: Deleting model {} from storage".format( - round_config['model_id']), flush=True) elif round_config['task'] == 'validation' or round_config['task'] == 'inference': self.execute_validation_round(round_config) else: diff --git a/fedn/fedn/network/dashboard/restservice.py b/fedn/fedn/network/dashboard/restservice.py index 26ea39f08..b951fb83d 100644 --- a/fedn/fedn/network/dashboard/restservice.py +++ b/fedn/fedn/network/dashboard/restservice.py @@ -643,7 +643,7 @@ def assign(): combiner_preferred = request.args.get('combiner', None) if combiner_preferred: - combiner = self.control.network.get(combiner_preferred) + combiner = self.control.network.get_combiner(combiner_preferred) else: combiner = self.control.network.find_available_combiner()