Skip to content

Commit

Permalink
Merge branch 'main' into container-streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
nvidianz authored Jan 23, 2025
2 parents d101d0f + 67cbdf8 commit d09e12a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nvflare/app_opt/flower/applet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import time

from nvflare.apis.fl_context import FLContext
Expand Down Expand Up @@ -57,6 +58,8 @@ def get_command(self, ctx: dict) -> CommandDescriptor:
job_id = fl_ctx.get_job_id()
custom_dir = ws.get_app_custom_dir(job_id)
app_dir = ws.get_app_dir(job_id)
if not os.path.isabs(custom_dir):
custom_dir = os.path.relpath(custom_dir, app_dir)
cmd = f"flower-supernode --insecure --grpc-adapter --superlink {addr} {custom_dir}"

# use app_dir as the cwd for flower's client app.
Expand Down

0 comments on commit d09e12a

Please sign in to comment.