FTApiDaemon.py 文件源码

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

项目:futuquant 作者: FutunnOpen 项目源码 文件源码
def _fun_thread_daemon_restart(self):
        if self._close:
            return

        while True:
            if self._is_api_socket_ok() is False:
                process_new = psutil.Popen([self._exe_path, "type=python_auto"])
                if process_new is not None:
                    print("FTApiDaemon new futnn process open ! pid={}".format(process_new.pid))
                else:
                    print("FTApiDaemon open process fail ! ")

            time.sleep(self._time_restart)
            self._loop_kill_futunn()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号