V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
vulntor
V2EX  ›  Python

celery 的结果存在 redis 里面 还要自己去 redis 取吗?

  •  
  •   vulntor · 2018-08-25 15:24:35 +08:00 · 1747 次点击
    这是一个创建于 2238 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一个脚本调用任务是可以取结果的,但是我想在另外的机器上用 id 来取结果,发现任务执行完一段时间后就取不了了,状态变成 pending,但是结果在 redis 里躺着好好的。难道是要自己去 redis 里 get 吗?
    1 条回复    2018-08-25 15:32:21 +08:00
    vulntor
        1
    vulntor  
    OP
       2018-08-25 15:32:21 +08:00
    是我自己 sb 了 代码里有一句 celery.control.purge()忘了注释 导致结果都清掉了 自作孽啊~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1362 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 17:20 · PVG 01:20 · LAX 10:20 · JFK 13:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.