robust background queue for django
Project description
install
$ pip install django-robust
INSTALLED_APPS = ('robust', )
DB = {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
}
DATABASES = {
'default': DB,
'robust_ratelimit': DB # <- same db
}
define tasks
from robust import task
@task()
def heavy_stuff(foo):
pass
schedule tasks
from .tasks import heavy_stuff
heavy_stuff.delay(foo='bar')
execute tasks
$ ./manage.py robust_worker
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-robust-0.1.2.tar.gz
(9.2 kB
view hashes)