Skip to content

Commit

Permalink
Bugfix | Disable global model deletion (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede authored Jun 27, 2023
1 parent 07629ff commit 826742a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions fedn/fedn/network/combiner/round.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion fedn/fedn/network/dashboard/restservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 826742a

Please sign in to comment.