コード例 #1
0
ファイル: flask_app.py プロジェクト: quru/qis
def launch_aux_processes():
    # Close any open server connections before forking and...
    app.data_engine._reset_pool()
    app.cache_engine._reset_pool()
    # ...spawn the remaining services
    StatsManager.run_server(
        app.config['STATS_SERVER'],
        app.config['STATS_SERVER_PORT'],
        app.config['DEBUG']
    )
    TaskManager.run_server(
        app.config['TASK_SERVER'],
        app.config['TASK_SERVER_PORT'],
        app.config['DEBUG']
    )