Skip to content

Commit e786299

Browse files
authored
Break the recursion in task result (#880)
1 parent 9a9845a commit e786299

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nvflare/private/fed/server/fed_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def SubmitUpdate(self, request, context):
510510
self.logger.info("ignored result submission since Server Engine isn't ready")
511511
context.abort(grpc.StatusCode.OUT_OF_RANGE, "Server has stopped")
512512

513-
shared_fl_context.set_prop(FLContextKey.SHAREABLE, shareable, private=False)
513+
shared_fl_context.set_prop(FLContextKey.SHAREABLE, shareable, private=True)
514514

515515
contribution_meta = contribution.client.meta
516516
client_contrib_id = "{}_{}_{}".format(
@@ -593,7 +593,7 @@ def AuxCommunicate(self, request, context):
593593
fl_ctx.set_peer_context(shared_fl_context)
594594
shareable.set_peer_props(shared_fl_context.get_all_public_props())
595595

596-
shared_fl_context.set_prop(FLContextKey.SHAREABLE, shareable, private=False)
596+
shared_fl_context.set_prop(FLContextKey.SHAREABLE, shareable, private=True)
597597

598598
topic = shareable.get_header(ReservedHeaderKey.TOPIC)
599599

tests/unit_test/app_common/widgets/in_time_model_selector_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_model_selection(self, initial, received, expected):
8282
},
8383
)
8484

85-
peer_ctx.set_prop(FLContextKey.SHAREABLE, dxo.to_shareable(), private=False)
85+
peer_ctx.set_prop(FLContextKey.SHAREABLE, dxo.to_shareable(), private=True)
8686
fl_ctx = engine.fl_ctx_mgr.new_context()
8787
fl_ctx.set_prop(FLContextKey.PEER_CONTEXT, peer_ctx)
8888

0 commit comments

Comments
 (0)