jina.peapods.runtimes.gateway.grpc package

Module contents

class jina.peapods.runtimes.gateway.grpc.GRPCRuntime(args, cancel_event=None, **kwargs)[source]

Bases: jina.peapods.runtimes.zmq.asyncio.AsyncNewLoopRuntime

Runtime for gRPC.

async async_setup()[source]

The async method to setup.

Create the gRPC server and expose the port for communication.

async async_teardown()[source]

Close the prefetcher

async async_cancel()[source]

The async method to stop server.

async async_run_forever()[source]

The async running of server.