Skip to content

Commit a724ea0

Browse files
Merge pull request #206615 from shrohilla/shrohilla/kafka-retry
adding the retry related changes for kafka trigger
2 parents 366a1bc + 6c9c30a commit a724ea0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

articles/azure-functions/functions-bindings-error-pages.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Functions error handling and retry guidance
33
description: Learn to handle errors and retry events in Azure Functions with links to specific binding errors, including information on retry policies.
44

55
ms.topic: conceptual
6-
ms.date: 06/09/2022
6+
ms.date: 08/03/2022
77
zone_pivot_groups: programming-languages-set-functions-lang-workers
88
---
99

@@ -14,7 +14,7 @@ Handling errors in Azure Functions is important to avoid lost data, missed event
1414
This article describes general strategies for error handling and the available retry strategies.
1515

1616
> [!IMPORTANT]
17-
> The retry policy support in the runtime for triggers other than Timer and Event Hubs is being removed after this feature becomes generally available (GA). Preview retry policy support for all triggers other than Timer and Event Hubs will be removed in October 2022.
17+
> The retry policy support in the runtime for triggers other than Timer, Kafka, and Event Hubs is being removed after this feature becomes generally available (GA). Preview retry policy support for all triggers other than Timer and Event Hubs will be removed in October 2022.
1818
1919
## Handling errors
2020

@@ -37,7 +37,7 @@ Capturing and logging errors is critical to monitoring the health of your applic
3737

3838
### Plan your retry strategy
3939

40-
Several Functions bindings extensions provide built-in support for retries. In addition, the runtime lets you define retry policies for Timer and Event Hubs triggered functions. To learn more, see [Retries](#retries). For triggers that don't provide retry behaviors, you may want to implement your own retry scheme.
40+
Several Functions bindings extensions provide built-in support for retries. In addition, the runtime lets you define retry policies for Timer, Kafka, and Event Hubs triggered functions. To learn more, see [Retries](#retries). For triggers that don't provide retry behaviors, you may want to implement your own retry scheme.
4141

4242
### Design for idempotency
4343

@@ -57,12 +57,13 @@ There are two kinds of retries available for your functions: built-in retry beha
5757
| RabbitMQ | [Binding extension](functions-bindings-rabbitmq-trigger.md#dead-letter-queues) | [Dead letter queue](https://www.rabbitmq.com/dlx.html) |
5858
| Service Bus | [Binding extension](../service-bus-messaging/service-bus-dead-letter-queues.md) | [Dead letter queue](../service-bus-messaging/service-bus-dead-letter-queues.md#maximum-delivery-count) |
5959
|Timer | [Retry policies](#retry-policies) | Function-level |
60+
|Kafka | [Retry policies](#retry-policies) | Function-level |
6061

6162
### Retry policies
6263

63-
Starting with version 3.x of the Azure Functions runtime, you can define a retry policies for Timer and Event Hubs triggers that are enforced by the Functions runtime. The retry policy tells the runtime to rerun a failed execution until either successful completion occurs or the maximum number of retries is reached.
64+
Starting with version 3.x of the Azure Functions runtime, you can define a retry policies for Timer, Kafka, and Event Hubs triggers that are enforced by the Functions runtime. The retry policy tells the runtime to rerun a failed execution until either successful completion occurs or the maximum number of retries is reached.
6465

65-
A retry policy is evaluated when a Timer or Event Hubs triggered function raises an uncaught exception. As a best practice, you should catch all exceptions in your code and rethrow any errors that you want to result in a retry. Event Hubs checkpoints won't be written until the retry policy for the execution has completed. Because of this behavior, progress on the specific partition is paused until the current batch has completed.
66+
A retry policy is evaluated when a Timer, Kafka, or Event Hubs triggered function raises an uncaught exception. As a best practice, you should catch all exceptions in your code and rethrow any errors that you want to result in a retry. Event Hubs checkpoints won't be written until the retry policy for the execution has completed. Because of this behavior, progress on the specific partition is paused until the current batch has completed.
6667

6768
#### Retry strategies
6869

0 commit comments

Comments
 (0)