Skip to content

Commit

Permalink
Fix messagehandler
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll committed Jul 14, 2024
1 parent 162e8dc commit f26b645
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
)
from flwr.proto.task_pb2 import TaskIns, TaskRes # pylint: disable=E0611
from flwr.server.superlink.state import State
from py.flwr.common.serde import user_config_to_proto


def create_node(
Expand Down Expand Up @@ -113,5 +114,14 @@ def get_run(
) -> GetRunResponse:
"""Get run information."""
run = state.get_run(request.run_id)
run_proto = None if run is None else Run(**vars(run))
run_proto = (
None
if run is None
else Run(
run_id=run.run_id,
fab_id=run.fab_id,
fab_version=run.fab_version,
override_config=user_config_to_proto(run.override_config),
)
)
return GetRunResponse(run=run_proto)

0 comments on commit f26b645

Please sign in to comment.