推荐学习书目
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 · Sep 23, 2015 · 3216 views
    This topic created in 3909 days ago, the information mentioned may be changed or developed.
    我在一个 Django 项目中使用的时候 总是会 debug 出一个日志:
    Sent heartbeat to prevent worker timeout. Next one should arrive within 420 seconds.

    看了官方文档没有找到,看了源码实在没看懂那几个时间的关系,请 V2EX 的大神们帮忙讲解一下 谢谢
    2 replies    2015-09-25 16:46:19 +08:00
    ljdawn
        1
    ljdawn  
       Sep 24, 2015
    heartbeat 的作用就是客户端告诉服务器,我还在呢,不要关掉这个连接。(心跳包信息很少 只是为了保持连接)
    cxclmm
        2
    cxclmm  
    OP
       Sep 25, 2015
    @ljdawn 请问在这个环境里 所谓的客户端是 队列 worker 吗?服务器是 redis 进程?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   888 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    ♥ Do have faith in what you're doing.