Captured log setup -ĮRROR :signal.py:280 Signal handler > raised: InterfaceError('connection already closed')įile "/home/vip/projects/ty_delivery/src/backend/venv/lib/python3.9/site-packages/celery/utils/dispatch/signal.py", line 276, in send Raise dj_exc_value.with_traceback(traceback) from exc_value Venv/lib/python3.9/site-packages/django/db/utils.py:90: in _exit_ Return self._prepare_cursor(self.create_cursor(name)) Venv/lib/python3.9/site-packages/django/db/backends/base/base.py:237: in _cursor Venv/lib/python3.9/site-packages/django/db/backends/base/base.py:259: in cursor Venv/lib/python3.9/site-packages/django/utils/asyncio.py:26: in inner Venv/lib/python3.9/site-packages/django/db/models/sql/compiler.py:1173: in execute_sql Results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) Venv/lib/python3.9/site-packages/django/db/models/query.py:51: in _iter_ Self._result_cache = list(self._iterable_class(self)) Venv/lib/python3.9/site-packages/django/db/models/query.py:1324: in _fetch_all Venv/lib/python3.9/site-packages/django/db/models/query.py:262: in _len_ Venv/lib/python3.9/site-packages/django/db/models/query.py:431: in get Return getattr(self.get_queryset(), name)(*args, **kwargs) Venv/lib/python3.9/site-packages/django/db/models/manager.py:85: in manager_method > profile = (username='test_user')īackend/contrib/order/tests/test_tasks.py:53: The above exception was the direct cause of the following exception:ĭef test_set_profile_orders_total_count(self, celery_worker): Venv/lib/python3.9/site-packages/django/db/backends/postgresql/base.py:236: InterfaceError Self =, name = create_cursor(self, name=None):Į psycopg2.InterfaceError: connection already closed Venv/lib/python3.9/site-packages/django/utils/asyncio.py:26: Venv/lib/python3.9/site-packages/django/db/backends/base/base.py:237: > return self._prepare_cursor(self.create_cursor(name)) # Detect a running event loop in this thread. If not os.environ.get('DJANGO_ALLOW_ASYNC_UNSAFE'): /./././env/lib/python3.8/site-packages/django/db/backends/postgresql/base.py:236: InterfaceError # transaction, hence use a holdable cursor.Ĭursor = (name, scrollable=False, withhold=)Į django.db.utils.InterfaceError: connection already closed # In autocommit mode, the cursor will be used outside of a
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |