Python 芹菜AsyncResult与Redis BackendResult奇怪的行为

Python 芹菜AsyncResult与Redis BackendResult奇怪的行为,python,celery,Python,Celery,我用芹菜运行了一个异步任务;我使用redis作为后端和消息队列。 我试图通过一个新的AsyncResult对象获取存储的结果,但它挂起了 我的跑步: >>> from test_celery.tasks import add >>> from celery.result import AsyncResult >>> r = add.delay(1,1) >>> r.id '71bfc569-5752-4535-8a9e-10

我用芹菜运行了一个异步任务;我使用redis作为后端和消息队列。
我试图通过一个新的AsyncResult对象获取存储的结果,但它挂起了

我的跑步:

>>> from test_celery.tasks import add
>>> from celery.result import AsyncResult
>>> r = add.delay(1,1)
>>> r.id
'71bfc569-5752-4535-8a9e-108a80157a1d'
>>> r.backend
<celery.backends.redis.RedisBackend object at 0x7f4242feb0d0>
>>> r.get()  
2
>>> r.get()
2
>>> x = AsyncResult(r.id)
>>> x.get()
--> hangs
>>来自test\u芹菜.tasks导入添加
>>>从celery.result导入异步结果
>>>r=增加延迟(1,1)
>>>r.id
“71bfc569-5752-4535-8a9e-108a80157a1d”
>>>r.backend
>>>r.get()
2.
>>>r.get()
2.
>>>x=异步结果(r.id)
>>>x.get()
-->悬挂
我做错了什么?

愚蠢的我;-)

我的芹菜可以保存5秒钟的结果

app.conf.update(result_expires=5,)