我正在使用Windows 10和Celery 4.3,当我最初尝试设置Celery时,我发现celery不支持从版本4开始的Windows,因此人们建议使用gevent,如以下答案中所建议的
Celery raises ValueError: not enough values to unpack
所以我尝试了上述方法,起初一切似乎都正常,但后来我遇到了Gavent的以下问题
[2019-06-26 23:16:24,282: WARNING/MainProcess] Traceback (most recent call last):
[2019-06-26 23:16:24,282: WARNING/MainProcess] File "src/gevent/_waiter.py", line 119, in gevent.__waiter.Waiter.switch
[2019-06-26 23:16:24,283: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\celery\worker\pidbox.py", line 120, in loop
connection.drain_events(timeout=1.0)
[2019-06-26 23:16:24,284: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\kombu\connection.py", line 315, in drain_events
return self.transport.drain_events(self.connection, **kwargs)
[2019-06-26 23:16:24,284: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\kombu\transport\pyamqp.py", line 103, in drain_events
return connection.drain_events(**kwargs)
[2019-06-26 23:16:24,284: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\amqp\connection.py", line 500, in drain_events
while not self.blocking_read(timeout):
[2019-06-26 23:16:24,284: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\amqp\connection.py", line 505, in blocking_read
frame = self.transport.read_frame()
[2019-06-26 23:16:24,285: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\amqp\transport.py", line 252, in read_frame
frame_header = read(7, True)
[2019-06-26 23:16:24,285: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\amqp\transport.py", line 436, in _read
s = recv(n - len(rbuf))
[2019-06-26 23:16:24,286: WARNING/MainProcess] File "c:\users\aadhikarla\appdata\local\continuum\anaconda3\lib\site-packages\gevent\_socket3.py", line 378, in recv
return _socket.socket.recv(self._sock, *args)
[2019-06-26 23:16:24,286: WARNING/MainProcess] ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
[2019-06-26 23:16:24,286: WARNING/MainProcess] 2019-06-26T17:46:24Z
[2019-06-26 23:16:24,286: WARNING/MainProcess] <built-in method switch of gevent.__greenlet_primitives.TrackedRawGreenlet object at 0x000001EA469FAAC8> failed with ConnectionResetError
根本无法弄清错误与什么有关,任何见解都会有很大帮助。