This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A Twisted class for parallel execution of functions performing the same task, returning the result from the one that finishes first.

Project Description

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.

Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
txdpce-0.1.2.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Jul 12, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting