Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq committed Jul 13, 2024
1 parent e5c9899 commit 1af5c9e
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/py/flwr/superexec/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def start_run(
return None

# Install FAB to flwr dir
fab_version, fab_id = get_fab_metadata(fab_file)
_, fab_id = get_fab_metadata(fab_file)
fab_path = install_from_fab(fab_file, None, True)

# Install FAB Python package
Expand All @@ -69,24 +69,23 @@ def start_run(
fab_name = Path(fab_id).name

# Start Simulation
proc = (
subprocess.Popen(
[
"flower-simulation",
"--client-app",
f"{fab_name}.client:app",
"--server-app",
f"{fab_name}.server:app",
"--num-supernodes",
f"{num_supernodes}",
"--run-id",
str(run_id),
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
),
proc = subprocess.Popen( # pylint: disable=consider-using-with
[
"flower-simulation",
"--client-app",
f"{fab_name}.client:app",
"--server-app",
f"{fab_name}.server:app",
"--num-supernodes",
f"{num_supernodes}",
"--run-id",
str(run_id),
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
)

log(INFO, "Started run %s", str(run_id))

return RunTracker(
Expand Down

0 comments on commit 1af5c9e

Please sign in to comment.