GrpcHook

GRPC

General interaction with gRPC servers.

View Source

Last Updated: Dec. 8, 2020

Access Instructions

Install the GRPC provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

grpc_conn_idstrThe connection ID to use when fetching connection info.
interceptorsa list of gRPC interceptors based on or extends the four official gRPC interceptors, eg, UnaryUnaryClientInterceptor, UnaryStreamClientInterceptor, StreamUnaryClientInterceptor, StreamStreamClientInterceptor.a list of gRPC interceptor objects which would be applied to the connected gRPC channel. None by default.
custom_connection_funcpython callable objects that accept the connection as its only arg. Could be partial or lambda.The customized connection function to return gRPC channel.

Documentation

General interaction with gRPC servers.

Example DAGs

Improve this module by creating an example DAG.

View Source
  1. Add an `example_dags` directory to the top-level source of the provider package with an empty `__init__.py` file.
  2. Add your DAG to this directory. Be sure to include a well-written and descriptive docstring
  3. Create a pull request against the source code. Once the package gets released, your DAG will show up on the Registry.

Was this page helpful?