Skip to main content

txretry provides a Twisted class, RetryingCall, that calls a function until it succeeds. A back-off iterator (a generator function that yields intervals) can be specified to customize the interval between retried calls. When/if the back-off iterator raises StopIteration the attempt to call the function is aborted. An instance of the RetryingCall class provides a start method that returns a Deferred that will fire with the function result or errback with the first failure encountered.

Usage of the class is described in the following blog post: http://blogs.fluidinfo.com/terry/2009/11/12/twisted-code-for-retrying-function-calls/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

txretry-1.0.1.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file txretry-1.0.1.tar.gz.

File metadata

  • Download URL: txretry-1.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for txretry-1.0.1.tar.gz
Algorithm Hash digest
SHA256 16c2aa9e9c676906d43f0a4f3e9b1517a76acd0eeb0cadbce03c5e366029b391
MD5 20683ad55fecad717f3cab1e294c11a3
BLAKE2b-256 cda2a7153625b71d6b3dc213dac220eec602e03c13ec2bc1af424d6076e7c566

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page