Backoff

2.2.1 · active · verified Thu Oct 05

Backoff is a library for function decoration that adds retry capabilities with configurable backoff policies. The current version is 2.2.1, released on 2022-10-05, with a regular maintenance cadence.

Warnings

Install

Imports

Quickstart

A quick start example demonstrating how to use the backoff decorator.

import backoff

@backoff.on_exception(backoff.expo, Exception)
def my_function():
    # Your code here
    pass

if __name__ == '__main__':
    my_function()

view raw JSON →