推荐学习书目
› 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
ryanking8215
V2EX  ›  Python

uwsgi 杀死 worker 超时

  •  
  •   ryanking8215 ·
    ryanking8215 · Feb 5, 2015 · 3581 views
    This topic created in 4258 days ago, the information mentioned may be changed or developed.
    wsgi app使用python,pyramid写的,在初始化的时候启动了一个线程。
    当手动跑uwsgi在前台,想结束时,用Ctrl-c,然后会卡好一段时间,说kill worker超时,强行退出。
    不起那个线程就好了。

    想用signal获取信号然后在回调里把线程退出即可,问题是我用signal.signal()注册了SIGQUIT和SIGTERM,都没取到信号。

    已经g过了,在此请教一下大家。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   753 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:34 · PVG 04:34 · LAX 13:34 · JFK 16:34
    ♥ Do have faith in what you're doing.