Want to fire an event on server to all client (need to communicate a bool value to all clients) before calling initialise() #737
-
I wanted to know if there is any mechanism for the Scatter and Gather workflow to pass information (boolean value in my case) to all the clients, before the clients run their respective initialise() function. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks for your question. What initialize function are you referring to? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.