Registered 2011-07-12 by Terry Jones

A Twisted Python class for parallel execution of functions, returning the first available result.

NOTE: This code is now hosted on Github at

txdpce provides a Twisted Python class, DeferredParallelCommandExecutor. It allows you to register competing functions that compute a result. The execute method of the class calls them all one after another and returns a Deferred that will fire with the first success. The deferreds corresponding to the incomplete function calls are cancelled. If all functions fail, the deferred errs with a list of the failures.

The point is that you might have a couple of ways of getting a result (out of a cache, off the network) and you want to try them all, taking the answer from the first one that figures it out.

Project information

Terry Jones
Not yet selected
Apache Licence

RDF metadata

View full history Series and milestones

trunk series is the current focus of development.

All code Code

Version control system:

Get Involved

  • warning
    Report a bug
  • warning
    Ask a question
  • warning
    Help translate


txdpce does not have any download files registered with Launchpad.