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

uwsgi 杀死 worker 超时

  •  
  •   ryanking8215 ·
    ryanking8215 · 2015-02-05 21:38:29 +08:00 · 2713 次点击
    这是一个创建于 3376 天前的主题,其中的信息可能已经有所发展或是发生改变。
    wsgi app使用python,pyramid写的,在初始化的时候启动了一个线程。
    当手动跑uwsgi在前台,想结束时,用Ctrl-c,然后会卡好一段时间,说kill worker超时,强行退出。
    不起那个线程就好了。

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

    已经g过了,在此请教一下大家。
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2633 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:00 · PVG 22:00 · LAX 07:00 · JFK 10:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.