Closed
Description
After upgrading to channels-redis==4.0.0
, our celery tasks are all reporting the following traceback:
future: <Task finished name='Task-9' coro=<Connection.disconnect() done, defined at /usr/local/lib/python3.9/site-packages/red is/asyncio/connection.py:819> exception=RuntimeError('Event loop is closed')>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/redis/asyncio/connection.py", line 828, in disconnect
self._writer.close() # type: ignore[union-attr]
File "/usr/local/lib/python3.9/asyncio/streams.py", line 353, in close
return self._transport.close()
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 698, in close
self._loop.call_soon(self._call_connection_lost, None)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 751, in call_soon
self._check_closed()
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[2022-10-12 07:30:31,972] [ERROR] [asyncio] Task exception was never retrieved
Downgrading the image to channels-redis==3.4.1
resolves the issue, so I'm starting out here. This seems probably related to #312.
Image OS is Debian Bullseye, amd64. The django application is running with gunicorn.
Probably related packages:
celery==5.2.7
channels==3.0.5
channels-redis==4.0.0
hiredis==2.0.0
redis==4.3.4
Full Pipfile.lock: https://github.com/paperless-ngx/paperless-ngx/blob/dev/Pipfile.lock
Metadata
Metadata
Assignees
Type
Projects
Status
✅ Done