Size: 416
Comment:
|
Size: 797
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html |
|
Line 18: | Line 20: |
== Test app with Redis == Run redis: {{{#!highlight bash #redis-server & #redis-cli redis 127.0.0.1:6379> quit }}} App: {{{#!highlight python from celery import Celery app = Celery('tasks', broker='redis://localhost') @app.task def add(x, y): return x + y }}} |
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
- easy_install celery
Check installation:
Test app with Redis
Run redis:
App: