Skip to content

Want to fire an event on server to all client (need to communicate a bool value to all clients) before calling initialise() #737

Closed Answered by holgerroth
hemant-works asked this question in Q&A
Discussion options

You must be logged in to vote

I see. Please consider if the flag information is really needed in the initialize() function. You could try sending your flag as a property of the data shareable for each task when it's needed. Otherwise, there is a timing issue as nvflare is a distributed system. All FL components you specify in your configs might get initialized at different times on server and clients. The Learner on the clients might get initialized() even before the flag information is available on the server.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@hemant-works
Comment options

Comment options

You must be logged in to vote
1 reply
@hemant-works
Comment options

Answer selected by hemant-works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants