gpt4 book ai didi

python flask线程一直在运行,无法停止

转载 作者:行者123 更新时间:2023-11-28 19:06:23 27 4
gpt4 key购买 nike

我使用 flask 作为 http 服务器,为了支持多线程,我设置了 threaded=True 调用堆栈 显示每个线程都在运行,并且在函数完成时不会取消。

enter image description here

而且内存一直在增长。

enter image description here

最佳答案

我用tornado框架解决了。

关于python flask线程一直在运行,无法停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46318167/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com