Skip to main content

A simple task-queue for SQS.

Project description

# PyQS - Python task-queues for Amazon SQS

[![Build Status](https://travis-ci.org/spulec/PyQS.png?branch=master)](https://travis-ci.org/spulec/PyQS)

# WARNING: This library is still under active development and should not be used in production.

# In a nutshell

PyQS is a simple task-queue for SQS.

email/tasks.py
```python
@task()
def send_email(subject):
pass
```

Then later run
```python
send_email.delay(subject='Hi there')
```

This task will get enqueued to a new 'emailer.tasks.send_email' queue.

If you wanted to put it on a particular queue, say 'email', you can do

email/tasks.py
```python
@task(queue='email')
def send_email(subject):
pass
```


Run the worker:

```bash
$ pyqs email.tasks.send_email
```

Or to run all tasks

```bash
$ pyqs email.*
```

This is based on Python's [fnmatch](http://docs.python.org/2/library/fnmatch.html).

#### Compatability

UNIX. Due to the use of the `os.getppid` system call. This feature can probably be worked around if anyone actually wants windows support.

Project details


Download files

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

Files for pyqs, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyqs-0.0.3.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page