Exemple #1
0
def main():
    _setup_logging(verbose=True)
    ws_app = Application()
    server = tornado.httpserver.HTTPServer(ws_app)
    server.listen(settings.WEB_CONSOLE_PORT)
    pod_life_cycle = PodLifeCycle()
    pod_life_cycle.start()
    tornado.ioloop.IOLoop.instance().start()
Exemple #2
0
def main():
    _setup_logging(verbose=True)
    ws_app = Application()
    tornado.locale.load_gettext_translations(settings.LOCALE_PATHS[0], domain='django')
    server = tornado.httpserver.HTTPServer(ws_app)
    server.listen(settings.WEB_CONSOLE_PORT)
    pod_life_cycle = PodLifeCycle()
    pod_life_cycle.start()
    tornado.ioloop.IOLoop.instance().start()
Exemple #3
0
def main():
    _setup_logging(verbose=True)
    ws_app = Application()
    tornado.locale.load_gettext_translations(settings.LOCALE_PATHS[0],
                                             domain="django")
    server = tornado.httpserver.HTTPServer(ws_app)
    server.listen(settings.WEB_CONSOLE_PORT)

    # graceful_shutdown
    signal.signal(signal.SIGTERM, partial(exit_handler, server))
    signal.signal(signal.SIGINT, partial(exit_handler, server))

    pod_life_cycle = PodLifeCycle()
    pod_life_cycle.start()
    tornado.ioloop.IOLoop.instance().start()