← Diagram sources

tenacity · Version 1

Tenacity retry callback order

Tenacity runs before, then the attempted function. If the retry predicate accepts the outcome, after runs, wait computes the delay, and stop chooses exhaustion or before_sleep followed by sleep and the next attempt. An outcome not selected for retry returns or raises.

Independent documentation contribution. Maintainer approval is not implied.

Tenacity runs before, then the attempted function. If the retry predicate accepts the outcome, after runs, wait computes the delay, and stop chooses exhaustion or before_sleep followed by sleep and the next attempt. An outcome not selected for retry returns or raises.

Preview shows the published original. Your edits leave it unchanged.

Artwork and source are available under the MIT license. Embedded fonts retain their separate SIL OFL notices in the SVG. No backlink is required. Native Mermaid or Graphviz source, when provided, regenerates with its own layout.

Edit a copy

Free, no account required. Download your edits to keep them.

Nodes10 of 12
Edges9 of 14