Skip to content

Commit

Permalink
feat(framework) Update subprocess launch mechanism for simulation plu…
Browse files Browse the repository at this point in the history
…gin (#3826)

Signed-off-by: Danny Heinrich <[email protected]>
Co-authored-by: Danny Heinrich <[email protected]>
  • Loading branch information
jafermarq and Moep90 authored Jul 17, 2024
1 parent c6547ef commit a20e4c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/py/flwr/superexec/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,17 @@ def start_run(
command.extend(["--run-config", f"{override_config}"])

# Start Simulation
proc = subprocess.Popen( # pylint: disable=consider-using-with
proc = subprocess.run( # pylint: disable=consider-using-with
command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
check=True,
text=True,
)

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

return RunTracker(
run_id=run_id,
proc=proc,
proc=proc, # type:ignore
)

# pylint: disable-next=broad-except
Expand Down

0 comments on commit a20e4c9

Please sign in to comment.