runserver.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:shelter 作者: seznam 项目源码 文件源码
def command(self):
        setproctitle.setproctitle(
            "{:s}: master process '{:s}'".format(
                self.context.config.name, " ".join(sys.argv)
            ))
        # For each interface create workers
        for tornado_app in get_tornado_apps(self.context, debug=False):
            self.init_workers(tornado_app)
        # Run workers
        try:
            start_workers(self.workers, max_restarts=100)
        except KeyboardInterrupt:
            pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号