From ecdeb2ba25d10600431625c796ffd67753000c6e Mon Sep 17 00:00:00 2001 From: felicius Date: Thu, 3 Oct 2024 23:29:34 +0200 Subject: [PATCH] docs: channel_options, default keepalive_time_ms --- docs/channels.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/channels.rst b/docs/channels.rst index 6ff7a0ee..8783f4cf 100644 --- a/docs/channels.rst +++ b/docs/channels.rst @@ -3,6 +3,22 @@ Channels ======== In order to instantiate a ZeebeWorker or ZeebeClient you will need to provide an instance of a `grpc.aio.Channel`. +This Channel can be configured with the parameters `channel_credentials` and `channel_options`. + +.. seealso:: + + `Python Channel Options `_ + Documentation of the available Python `grpc.aio.Channel` `options` (channel_arguments). + + +.. note:: + + By default, channel_options is defined so that the grpc.keepalive_time_ms option is always set to 45_000 (45 seconds). + Reference Camunda Spring Zeebe SDK with predefined `keep-alive `_ attribute. + + You can override the default `channel_options` by passing + e.g. `channel_options = (("grpc.keepalive_time_ms", 60_000),)` - for a keepalive time of 60 seconds. + Pyzeebe provides a couple standard ways to achieve this: