Skip to main content

ConnectorService

No overview available.

Methods


run()

@classmethod
def run(
port: int,
prometheus_port: int,
worker: int,
timeout: int | None,
modules: List[str]| None
) - > None

Starts the gRPC server, making the connector service available to handle requests. This method initializes the server with specified network configurations and loads necessary modules.

Parameters

NameTypeDescription
portintThe network port on which the gRPC server will listen for incoming connections.
prometheus_portintThe network port on which Prometheus metrics will be exposed for monitoring.
workerintThe number of worker threads or processes to use for handling gRPC requests, influencing concurrency and performance.
timeout`intNone`
modules`List[str]None`

Returns

TypeDescription
NoneThis method does not return any value; it runs indefinitely until the server is stopped.