Skip to main content

Event-loop based, miniature job queue and worker that runs the task in a subprocess (via fork).

Project description

Build Status Coverage Status PYPI Package PYPI Package

Event-loop based, miniature job queue and worker that runs the task in a subprocess (via fork). When multiple requests are made for the same task they are collapsed into a single instance.

Note:

It doesn’t support arguments to tasks. Not yet …

Usage

class MacLeod(StampedeWorker):
    socket_name = 'test.sock'

    def do_work(self, task_name):
        import time
        time.sleep(18)

man = MacLeod()
man.run()

To create tasks:

echo mytask > nc -U test.sock

Features

  • TODO

Implementation

TODO

TODO

  • ???

Requirements

OS:

Linux

Runtime:

Python 2.6, 2.7, 3.2, 3.3 or PyPy

Packages:

python-signalfd

Bitdeli badge

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

stampede-0.0.2.tar.gz (7.5 kB view hashes)

Uploaded Source

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