Categories

x
Skip Navigation Links
Categories
Skip Navigation Links

Latest Posts

What is Logic app re-try policy and how to implement it?


There are some basic exceptions like request time out or edit conflicts between multiple simultaneous requests, that can be resolved by simple retry logic in the application. In this article, we will go into detail about the retry policy in Azure Logic apps. A retry policy applies to intermittent failures, characterized as HTTP status codes 408, 429, and 5xx, in addition to any connectivity exceptions. The default is an exponential interval policy set to retry 4 times.

Note:

  • If the Logic app request fails because of any of the below HTTP response codes, we can use the retry policy in the logic app.
    • 408 – Request Time out
    • 409 - Conflict
    • 5xx – The server failed to fulfill a request
  • Maximum 90 retry attempts are allowed in this policy, the default value is 4 attempts.
  • 4 seconds is the default value for the retry interval. i.e., after 4 seconds the request action will be automatically retried.
  • You need to carefully enable the retry logic in your application because if the application is failing every time on the first step, you might need to correct it instead of putting unnecessary retry requests.

How to apply retry in Logic apps?

  • Open your logic apps.
  • Go to the action causing the issue.
  • Click on the ellipsis and then click on the settings.
  • ellipsis settings
  • Scroll down to the settings page. There are 4 types of retry policies. You need to select 1 of them. types of retry policies
    • Retry Policy: Default – this is the default policy, which sends around 4 retries at the interval of 7 seconds.
    • Retry Policy: None – The logic app will not send any retry request, in case of failure and it will directly exit the execution.
    • Retry Policy: Exponential Interval – There are a few properties for this option that you can set.
      • Count: you can specify a retry count number between 1 to 90.
      • Interval: The value is in ISO 8601 format. Specify the interval between two retry requests.
      • Minimum Interval: The value is in ISO 8601 format. If you don’t specify anything the application is going to wait for a random interval before sending the next retry request.
      • exponential interval retry policy
      • Maximum Interval: The value is in ISO 8601 format. If you don’t specify anything the application is going to wait for a random interval before sending the next retry request.
    • Retry Policy: Fixed Interval - There are a few properties for this option that you can set.
      • Count: you can specify a retry count number here.
      • Interval: The value is in ISO 8601 format. Specify the interval between two retry requests.
      • fixed interval retry policy

We value your Feedback:

Page URL:

Name:

Email:


Suggestion:

© 2023 Code SharePoint