Celery
Celery is an asynchronous task queue/job queue based on distributed message passing.
http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html
Slackware 14 installation
Check installation:
1 python
2 Python 2.7.3 (default, Jul 3 2012, 19:58:39)
3 [GCC 4.7.1] on linux2
4 Type "help", "copyright", "credits" or "license" for more information.
5 >>> import celery
6 >>> celery.__version__
7 '3.1.7'
8 >>>
Test app with Redis
Run redis:
1
2
3 redis 127.0.0.1:6379> quit
App:
1 from celery import Celery
2
3 app = Celery('tasks', broker='redis://localhost')
4
5 @app.task
6 def add(x, y):
7 return x + y