我在间隔调度方法中运行异步方法,并在每秒后向 websocket 发送数据。它可以正常工作一段时间,但一段时间后,芹菜工人终端会出现以下错误。我使用 python 3.8.5 和 djnago 3.1.7。谁能帮我解决这个问题。
[2021-06-25 17:54:38,033: WARNING/ForkPoolWorker-6] 24
[2021-06-25 17:54:38,033: WARNING/ForkPoolWorker-6] Exception ignored in:
[2021-06-25 17:54:38,033: WARNING/ForkPoolWorker-6] <function BaseEventLoop.__del__ at 0x7eff8a9e8700>
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] Traceback (most recent call last):
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] File "/usr/lib/python3.8/asyncio/base_events.py", line 656, in __del__
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] File "/usr/lib/python3.8/asyncio/unix_events.py", line 58, in close
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] File "/usr/lib/python3.8/asyncio/selector_events.py", line 92, in close
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] File "/usr/lib/python3.8/asyncio/selector_events.py", line 99, in _close_self_pipe
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] AttributeError
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] :
[2021-06-25 17:54:38,034: WARNING/ForkPoolWorker-6] '_UnixSelectorEventLoop' object has no attribute '_ssock'