Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.

Retry policy

Log in to subscribe to topics and get notified when content changes.

Retry policy

Automatically retry failed requests when a step encounters an intermittent issue such as a network failure or request rate limit. Set a retry policy to prevent having to manually triggering the step again.

Features

Retry policies can be:
  • Created to support connection timeouts or failed requests based on header, status, response body, error, and HTTP method.
  • Applied to all actions that use a given connection alias.
  • Applied directly to an action step
Retry policies can be used to define:
  • The conditions that must be met to retry a step.
  • The time interval to wait before retrying a step.
  • The maximum number of retry attempts the step makes before stopping.
Associate a default retry policy to a Connection & Credentials alias and apply the retry policy to all HTTP connections.
Note: You can only create retry policies for REST and SOAP steps.

Create a retry policy

Before you begin

Role required: flow_designer or admin

Procedure

  1. Navigate to IntegrationHub > Retry Policy > Create New.
  2. On the form, fill in the fields.
    Table 1. Retry Policy form
    Field Description
    Name Name to uniquely identify the retry policy.
    Connection Type HTTP
    Condition Conditions that must be met to trigger the retry policy. Conditions that trigger a retry policy include the is, is not, contains, and contains not operators.
    Retry Strategy
    • Exponential Backoff: Option to exponentially increase the time interval for the subsequent retry attempts. The multiplier is 2.
    • Fixed Interval: Option to specify a fixed time interval after which a retry attempt should be made.
    Interval (seconds) Time interval in seconds after which a retry attempt should be made.
    Note: If Retry Strategy is Exponential Backoff, the time interval exponentially increases after every retry attempt till the maximum numbers of attempts is reached.
    Count Maximum number of retry attempts. If no value is specified, the maximum number of retry attempts is based on the value provided in the glide.fdih.retry.max_count system property. Default value of the glide.fdih.retry.max_count system property is 0. For more information about system properties, see Available system properties.
  3. Click Submit.

Example: Retry policy with Retry Strategy as Exponential Backoff

Figure 1. Sample retry policy
Sample retry policy when Retry Strategy is Exponential Backoff
In this example, the policy is defined to attempt retry when one of these conditions is met:
  • HTTP Method is GET and Error is Connection Timeout
  • HTTP Method is GET and Status Code is 429
When the condition is met, retry attempts are made for a maximum number of three times. The time interval between the retry attempts is exponentially increased. The time intervals in this example are 10 seconds, 20 seconds, and 40 seconds.

What to do next

  • Create Connection & Credential alias, if you do not have the required alias.
  • Assign the retry policy as Default Retry Policy to the required Connection & Credential alias.
    Note: A default retry policy is provided and is selected as Default Retry Policy. If you have created retry policies, you can select the required policy as Default Retry Policy.
  • Create an HTTP(s) Connection in the Connections related list for the Connection & Credential alias. For more information, see credentials, connections, and aliases.
  • Verify and view the details of the retry attempts by navigating to System Logs > Outbound HTTP Requests.
Feedback