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
Kcelone
V2EX  ›  Python

celery 任务有时注册失败

  •  1
     
  •   Kcelone · 2018-10-09 13:35:50 +08:00 · 2070 次点击
    这是一个创建于 2017 天前的主题,其中的信息可能已经有所发展或是发生改变。

    当服务器收到界面请求,调用 celery 执行异步任务时,查看 celery 执行结果,发现有时成功,有时失败,当失败时接收不到任务注册,redis 作为 backend,Redis 中的执行结果为 failure,原因是 Not Registered

    1. 现象: 任务注册有时成功有时失败,失败时提示 Not Registered。
    2. 配置:celery 4.2.1, python3.6 redis 存储。

    有人遇到过我这种情况吗?

    2 条回复    2019-04-18 09:26:59 +08:00
    Kcelone
        1
    Kcelone  
    OP
       2018-10-09 13:48:32 +08:00
    本地测试( postman 连接本地服务) OK,测试服务器测试就异常。
    CyJaySong
        2
    CyJaySong  
       2019-04-18 09:26:59 +08:00
    我也遇到了这个问题,您解决没
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5981 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 02:16 · PVG 10:16 · LAX 19:16 · JFK 22:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.