Skip to content

A Twisted Python class, RetryingCall, that will attempt to call a function until it succeeds

License

Notifications You must be signed in to change notification settings

terrycojones/txretry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

A Twisted Python class, RetryingCall, that will attempt to call a function until it succeeds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published