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

PYTHON RQ 的问题请教,大神们给讲讲

  •  
  •   cxclmm ·
    chenxc86 · 2015-09-23 14:09:25 +08:00 · 2319 次点击
    这是一个创建于 3140 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我在一个 Django 项目中使用的时候 总是会 debug 出一个日志:
    Sent heartbeat to prevent worker timeout. Next one should arrive within 420 seconds.

    看了官方文档没有找到,看了源码实在没看懂那几个时间的关系,请 V2EX 的大神们帮忙讲解一下 谢谢
    2 条回复    2015-09-25 16:46:19 +08:00
    ljdawn
        1
    ljdawn  
       2015-09-24 12:46:28 +08:00
    heartbeat 的作用就是客户端告诉服务器,我还在呢,不要关掉这个连接。(心跳包信息很少 只是为了保持连接)
    cxclmm
        2
    cxclmm  
    OP
       2015-09-25 16:46:19 +08:00
    @ljdawn 请问在这个环境里 所谓的客户端是 队列 worker 吗?服务器是 redis 进程?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5394 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:16 · PVG 16:16 · LAX 01:16 · JFK 04:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.