Skip to main content
Version: Next

Async Retry Processor

Overview

The AsyncRetry processor automatically retries failed requests based on configurable parameters.

AsyncRetry


Input and Output

This processor works on the response stream:

  • Input Stream: Response – The processor evaluates response streams to determine if they should be retried.
  • Output Streams: Response – If retry conditions are met, the request is requeued internally for another attempt.

Parameters

Each parameter is defined as a key-value pair inside the parameters section.

attempts

Type: number
Required: True
Defines the number of attempts to retry a failed request before giving up.

Example:

- key: attempts
value: 3

Best Practices

  • Set attempts to a reasonable number to avoid excessive retries that may overload the system.

For more details on configuring flows, visit the Lunar.dev Flows Documentation.


Async Retry Processor Template

AsyncRetry Processor
AsyncRetry:
processor: AsyncRetry
parameters:
- key: attempts
value: 3 # Number of retry attempts

Use Case

You can use the AsyncRetry processor to manage traffic to a backend service that cannot handle large bursts of traffic in real time.

Flows Used In

Async Queue Flow