Пример #1
0
 def Config(  # noqa: N802
     self, config_data: pb.ConfigRecord, context: grpc.ServicerContext
 ) -> pb.ConfigResult:
     stream_id = config_data._info.stream_id
     iface = self._mux.get_stream(stream_id).interface
     iface._publish_config(config_data)
     # make up a response even though this was async
     result = pb.ConfigResult()
     return result
Пример #2
0
 def Config(self, config_data, context):  # noqa: N802
     # TODO: make this sync?
     self._backend._interface._publish_config(config_data)
     # make up a response even though this was async
     result = wandb_internal_pb2.ConfigResult()
     return result