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

Supervisor 怎样才能实现等上个进程启动完成后才启动下一个进程?

  •  
  •   cxh116 ·
    mangege · 2014-04-25 17:04:14 +08:00 · 10045 次点击
    这是一个创建于 3653 天前的主题,其中的信息可能已经有所发展或是发生改变。
    定义了多个program,有按顺序启动program的要求
    4 条回复    2014-08-12 13:54:43 +08:00
    cedared
        1
    cedared  
       2014-04-25 17:12:54 +08:00
    留名关注一下
    timonwong
        2
    timonwong  
       2014-04-25 17:30:48 +08:00
    priority 不行?
    http://supervisord.org/configuration.html


    priority

    The relative priority of the program in the start and shutdown ordering. Lower priorities indicate programs that start first and shut down last at startup and when aggregate commands are used in various clients (e.g. “start all”/”stop all”). Higher priorities indicate programs that start last and shut down first.

    Default: 999

    Required: No.

    Introduced: 3.0
    cxh116
        3
    cxh116  
    OP
       2014-05-04 10:46:39 +08:00
    @timonwong 这个可以实现顺序启动,但没有等上个program启动完成就启动下一个program

    我的需求是需要等上个program启动完成,才启动下个program,
    everbird
        4
    everbird  
       2014-08-12 13:54:43 +08:00
    @cxh116 这个貌似目前还做不到,目前只能 autostart=false 然后手工或脚本指定启动顺序。有个 Open 的 Issue 在 github 上:

    https://github.com/Supervisor/supervisor/issues/122
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3620 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:30 · PVG 12:30 · LAX 21:30 · JFK 00:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.