azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Question about retry policy support status for `CosmosDBTrigger`

Open shibayan opened this issue 1 year ago • 1 comments

Is your question related to a specific version? If so, please specify:

Azure Functions v4

What language does your question apply to? (e.g. C#, JavaScript, Java, All)

All

Question

We have already set a retry policy for CosmosDBTrigger to prevent Change Feed checkpoints from advancing on failure, ensuring reliable processing without data loss.

e.g. https://dev.to/shibayan/a-quick-review-of-the-azure-functions-new-feature-retry-policy-p56

However, the documentation notes that retry policies other than Timer and Event Hubs are no longer supported. The loss of retry support in CosmosDBTrigger has a very large impact and reduces the reliability of the application.

  • https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-error-pages?tabs=fixed-delay%2Cin-process&pivots=programming-language-csharp

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.

Will a built-in retry be implemented in CosmosDBTrigger by 2022/10? If there are no plans to do so, support by retry policy should not be removed.

shibayan avatar Jul 29 '22 06:07 shibayan

Hi @ealsur Could you please help with this issue?

Ved2806 avatar Aug 01 '22 11:08 Ved2806

Our extension code does not include any Retry behavior. This was already discussed at https://github.com/Azure/azure-webjobs-sdk-extensions/issues/783#issuecomment-1221139195 and it seems it was something Functions added on top of all Triggers.

ealsur avatar Aug 25 '22 14:08 ealsur

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

ghost avatar Sep 03 '22 16:09 ghost

Thanks for your comment. I will review the linked Issue and make additional comments if necessary, so I will close this Issue.

shibayan avatar Sep 03 '22 16:09 shibayan