-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a configurable retry policy for Kafka triggered functions #122
Comments
Hi @mcollier. Is this something that is being worked at? |
@maxbog I don't have any insights on specific work for the Kafka extension. FYI - There is now a retry policy for function triggers; see https://docs.microsoft.com/azure/azure-functions/functions-bindings-error-pages?tabs=csharp#retry-policies. |
@mcollier I saw those annotations, but from this issue I understand that they need some code in the kafka trigger to be supported, right? What I'm looking for is a retry on an exception without advancing the cursor. As far as I know, right now even if an exception occurs in the function code, the kafka cursor will go forward. Maybe I could help here and submit a PR based on how it's implemented in the Event Hubs trigger? I saw a PR on the EH repo, which is not merged yet: Azure/azure-functions-eventhubs-extension#56 |
I just read some code in the Azure/azure-webjobs-sdk#2463 PR and for me it seems that there is nothing required on the kafka extension to support the retries. @mcollier Can you confirm that the Retry attributes will work without any changes to this repo? |
Hi @maxbog I talked with the author of the Azure/azure-functions-eventhubs-extension#56 . He said that the PR should be closed since he imiplemented it on webjobssdk side. We can use the retry feature for the Kafka as well. I'll test it and confirm if it works. However, in theory, it should work. :) |
Hi @maxbog and @mcollier
|
Retry policies now require each trigger to opt-in (because many triggers already have built-in retries) so there is still some work to do here for the Kafka extension to add retry support. |
This is supported in 3.5.0 release |
As a developer,
I would like the ability to optionally configure a retry policy when the triggered function fails,
so that a failed execution does not automatically advance the cursor.
This feature should work for all GA supported Azure Functions languages.
There is a similar issue for the Event Hub extension. The expectation is that the Event Hub and Kafka extension work in a similar manner related to retries. Please see the discussion at Azure/azure-webjobs-sdk#1597 and the sample at https://github.com/jeffhollan/retry-design.
The text was updated successfully, but these errors were encountered: