Skip to main content

A Twisted class for retrying failed calls with a customizable back-off schedule.

Project description

txretry provides a Twisted class RetryingCall that will attempt to call a function until it succeeds. A back-off iterator (an interator yielding intervals) can be provided to set 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/

Project details


Download files

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

Source Distribution

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for txretry-0.0.2.tar.gz
Algorithm Hash digest
SHA256 536a6dcedf3621d083b167a2b9738a473ba7da2977faa768e86bfcfeebc1d32f
MD5 c50bfbdfc8e9ced097f8dde25b15dd13
BLAKE2b-256 f9ab45df3008cb83ce4e78777ed661afbaacd2dd4461fea32f4f20edd051f347

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page