question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retry policies for isolated (out-of-process) AF Cosmos DB triggers/bindings soon deprecated?

See original GitHub issue

@kshyju answer below works at the moment, but now we recently started to see the following trace in AppInsights for our AF Cosmos DB triggers : “Soon retries will not be supported for function ‘[Function Name]’. For more information, please visit http://aka.ms/func-retry-policies.

The Retry examples section also shows “Retry policies aren’t yet supported when running in an isolated process.” and the Retries section reflects no support for the Cosmos DB trigger/binding.

What’s the path forward for AF Cosmos DB triggers running out-of-process?

Yes, retry policies are supported in isolated(out-of-process) function apps. You can enable it by adding the retry section to your host config. Here is an example host.json

{
  "version": "2.0",
  "retry": {
    "strategy": "fixedDelay",
    "maxRetryCount": 2,
    "delayInterval": "00:00:03"
  }
}

The reason why I’m asking is the documentation mentioning Retries require NuGet package Microsoft.Azure.WebJobs >= 3.0.23

That documentation which refers the usage of ExponentialBackoffRetry attribute is for in-proc function apps.

Please give it a try and let us know if you run into any problems.

_Originally posted by @kshyju in https://github.com/Azure/azure-functions-dotnet-worker/issues/832#issuecomment-1072545934_

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:7
  • Comments:53 (19 by maintainers)

github_iconTop GitHub Comments

6reactions
MikeNichollscommented, Jul 19, 2022

Will there be any guidance on retries for Cosmos DB triggered functions before the October 2022 deadline when retry policy support will be removed?

Cosmos DB is currently the outlier on the table of retry support for triggers/bindings, with “n/a” and “Not configurable” listed. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-error-pages#retries

5reactions
ealsurcommented, Sep 22, 2022

@sayyaari The change I added is for the 4.x extension that will release sometime next month, the document would need to be updated I guess

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retry guidance for Azure services
See the guide to designing resilient applications with Azure Cosmos DB SDKs for a complete list of error conditions and when to retry....
Read more >
Issues · Azure/azure-webjobs-sdk-extensions
Http depends on deprecated "Microsoft. ... Retry policies for isolated (out-of-process) AF Cosmos DB triggers/bindings soon deprecated? enhancement Needs: ...
Read more >
Azure Functions error handling and retry guidance
Learn how to handle errors and retry events in Azure Functions, with links to specific binding errors, including information on retry ...
Read more >
Have the Document class when using CosmosDBTrigger ...
Documents namespace been deprecated when developing isolated Azure functions? I have recently migrated/upgraded a .NET6 Azure Function (v4) from ...
Read more >
Azure Functions の Retry Policy 機能の GA に伴う仕様変更 ...
詳細は以下のコメントを参照してください。 Retry policies for isolated (out-of-process) AF Cosmos DB triggers/bindings soon deprecated?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found