【发布时间】:2013-03-01 10:53:26
【问题描述】:
我正在测试 Django + Celery,hello world 示例。使用 RabbitMQ celery 可以正常工作,但是当我切换到 Redis 代理/结果时,我得到以下信息:
%timeit add.delay(1,2).get()
1 loops, best of 3: 503 ms per loop
settings.py
CELERY_RESULT_BACKEND = "redis"
BROKER_URL = 'redis://localhost:6379'
tasks.py
@task()
def add(x, y):
return x + y
上面的测试有什么问题吗?
【问题讨论】:
标签: redis celery django-celery