Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用ctrl+c强制退出时,_process_polling_result无法处理异常 #195

Open
123456yzj opened this issue Dec 19, 2024 · 0 comments
Open

Comments

@123456yzj
Copy link

`Traceback (most recent call last):
File "d:\project\tailin\dev\crawler.conda\Lib\multiprocessing\connection.py", line 328, in _recv_bytes
nread, err = ov.GetOverlappedResult(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [WinError 109] 管道已结束。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\project\tailin\dev\crawler.conda\Lib\site-packages\nacos\client.py", line 818, in _process_polling_result
cache_key, content, md5 = self.notify_queue.get()
^^^^^^^^^^^^^^^^^^^^^^^
File "d:\project\tailin\dev\crawler.conda\Lib\multiprocessing\queues.py", line 103, in get
res = self._recv_bytes()
^^^^^^^^^^^^^^^^^^
File "d:\project\tailin\dev\crawler.conda\Lib\multiprocessing\connection.py", line 216, in recv_bytes
buf = self._recv_bytes(maxlength)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\project\tailin\dev\crawler.conda\Lib\multiprocessing\connection.py", line 337, in _recv_bytes
raise EOFError
EOFError`

主动关闭主进程后, self.notify_queue,无法与主进程通信抛出异常。但是未做处理
怎么自己的代码中在生成对象后,遇到ctrl+c时处理这个错误呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant