尝试在多线程中处理链接时出错

2024-09-30 06:31:04 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图用20个线程通过asyncio和同期期货python3.4中的模块。它出现后,像2-5分钟脚本工作。在

concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.
Task exception was never retrieved
future: <Task finished coro=<main() done, defined at async.py:173> exception=BrokenProcessPool('A process in the process pool was terminated abruptly while the future was running or pending.',)>

我试图优化我的代码,但是仍然遇到了这个错误,这是前面描述的。在

代码:

^{pr2}$

Tags: ortheintaskexceptionfutureprocessrunning

热门问题