Skip to content

Commit

Permalink
Added empty launcher_map check.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen committed Oct 14, 2024
1 parent 048df0d commit 4296f96
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nvflare/private/fed/client/client_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,11 @@ def start_app(
def _get_job_launcher(self, client, job_meta: dict):
launcher = None
launcher_map = job_meta.get("launcher_map")
for launcher_id, sites in launcher_map.items():
if client.client_name in sites:
engine = client.engine
launcher = engine.get_component(launcher_id)
if launcher_map:
for launcher_id, sites in launcher_map.items():
if client.client_name in sites:
engine = client.engine
launcher = engine.get_component(launcher_id)
if not launcher:
launcher = ProcessJobLauncher()
return launcher
Expand Down

0 comments on commit 4296f96

Please sign in to comment.