Size: 1175
Comment:
|
Size: 1215
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 34: | Line 34: |
app.conf.update(CELERY_RESULT_BACKEND="redis://") | |
Line 44: | Line 45: |
Line 52: | Line 52: |
>>> add.delay(3,3) <AsyncResult: 7890ae15-000b-4d93-9378-3fbb3fb00f26> >>> |
>>> 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
Check installation:
Test app with Redis
Run redis:
App:
1 $celery -A celeryTest worker --loglevel=info
Run task