Size: 688
Comment:
|
Size: 1271
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from Celery | |
Line 8: | Line 9: |
* pip install celery | |
Line 22: | Line 24: |
Run redis: {{{#!highlight bash $redis-server & $redis-cli redis 127.0.0.1:6379> quit }}} App: |
|
Line 26: | Line 36: |
app.conf.update(CELERY_RESULT_BACKEND="redis://") | |
Line 31: | Line 42: |
{{{#!highlight bash $celery -A celeryTest worker --loglevel=info }}} Run task {{{#!highlight bash $ python Python 2.7.3 (default, Jul 3 2012, 19:58:39) [GCC 4.7.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from celeryTest import add >>> xx=add.delay(3,3) >>> xx.ready() True >>> print(xx.result) 6 }}} |
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
- pip install celery
Check installation:
Test app with Redis
Run redis:
App:
1 $celery -A celeryTest worker --loglevel=info
Run task