From 967eb91c9ee589a3bf6bef9bd294ad0cf1e3cb75 Mon Sep 17 00:00:00 2001 From: Yijun Xie <48257664+YijunXieMS@users.noreply.github.com> Date: Fri, 4 Sep 2020 10:26:42 -0700 Subject: [PATCH] Fix a docstring problem --- sdk/eventhub/azure-eventhub/azure/eventhub/_consumer_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_consumer_client.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_consumer_client.py index 1df04c72ff96..85dee5b12334 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_consumer_client.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_consumer_client.py @@ -403,6 +403,9 @@ def receive_batch(self, on_event_batch, **kwargs): For detailed partition context information, please refer to :class:`PartitionContext`. :type on_event_batch: Callable[~azure.eventhub.PartitionContext, List[~azure.eventhub.EventData]] + :keyword int max_batch_size: The maximum number of events in a batch passed to callback `on_event_batch`. + If the actual received number of events is larger than `max_batch_size`, the received events are divided into + batches and call the callback for each batch with up to `max_batch_size` events. :keyword float max_wait_time: The maximum interval in seconds that the event processor will wait before calling the callback. If no events are received within this interval, the `on_event_batch` callback will be called