API.retry_decorator

Contents

API.retry_decorator#

Exponential-backoff retry decorator for Thunderhead API calls.

Provides the retry() decorator, which transparently re-attempts a function call up to a configurable number of times with increasing delays between each attempt.

Functions#

retry([retries, initial_delay, backoff_factor])

A decorator to retry a function call with exponential backoff.