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

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

  •  
  •   cxh116 ·
    mangege · Apr 25, 2014 · 11531 views
    This topic created in 4580 days ago, the information mentioned may be changed or developed.
    定义了多个program,有按顺序启动program的要求
    4 replies  •  2014-08-12 13:54:43 +08:00
    cedared
    cedared
    Apr 25, 2014
    1
    留名关注一下
    timonwong
    timonwong
    Apr 25, 2014
    2
    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
    cxh116
    OP
    May 4, 2014
    3
    @timonwong 这个可以实现顺序启动,但没有等上个program启动完成就启动下一个program

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

    https://github.com/Supervisor/supervisor/issues/122
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1636 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 13:13 · PVG 21:13 · LAX 05:13 · JFK 08:13
    ♥ Do have faith in what you're doing.