Skip to content

Commit

Permalink
handle RunTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq committed Jul 17, 2024
1 parent 38ac543 commit 6ee52a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/py/flwr/superexec/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,18 @@ def start_run(
command.extend(["--run-config", f"{override_config}"])

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

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

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

# pylint: disable-next=broad-except
except Exception as e:
Expand Down

0 comments on commit 6ee52a8

Please sign in to comment.