From 51dc24527380506594cfe52539f0a983f2f7301a Mon Sep 17 00:00:00 2001 From: Sergei Kliuikov Date: Thu, 12 Dec 2024 15:31:36 -0800 Subject: [PATCH] Release 5.11.19 ### Changelog: - Fix(backend): Possible bug with asyncio freeze on centrifugo sent. --- requirements-prod.txt | 4 ++-- requirements-test.txt | 2 +- requirements.txt | 2 +- setup.py | 2 +- vstutils/__init__.py | 2 +- vstutils/models/cent_notify.py | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/requirements-prod.txt b/requirements-prod.txt index 2153103c..e9b996d6 100644 --- a/requirements-prod.txt +++ b/requirements-prod.txt @@ -2,6 +2,6 @@ # PyMySQL>=0.9.2,<=0.9.3; python_version<'3.0' # mysql-connector-python==8.0.15; python_version>'3.4' # Advanced cache support -redis[hiredis]~=5.2.0 +redis[hiredis]~=5.2.1 tarantool~=1.2.0 -pywebpush==2.0.1 +pywebpush==2.0.3 diff --git a/requirements-test.txt b/requirements-test.txt index 9b355886..c2f2a7f8 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,5 +1,5 @@ # Packages needed for test -coverage~=7.6.8 +coverage~=7.6.9 fakeldap~=0.6.6 tblib==3.0.0 beautifulsoup4~=4.12.3 diff --git a/requirements.txt b/requirements.txt index d1486552..042bdfed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ djangorestframework~=3.15.2 drf-yasg==1.21.8 django-filter==24.3 drf_orjson_renderer==1.7.3 -ormsgpack~=1.6.0 +ormsgpack~=1.7.0 pyyaml~=6.0.2 # web server diff --git a/setup.py b/setup.py index 225c286f..036d322e 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ r'vstutils/static/spa/.*\.css$' ], install_requires=[ - "django~=" + (os.environ.get('DJANGO_DEP', "") or "5.1.3"), + "django~=" + (os.environ.get('DJANGO_DEP', "") or "5.1.4"), ] + requirements, extras_require={ diff --git a/vstutils/__init__.py b/vstutils/__init__.py index ac6aadea..f8bed54f 100644 --- a/vstutils/__init__.py +++ b/vstutils/__init__.py @@ -1,2 +1,2 @@ # pylint: disable=django-not-available -__version__: str = '5.11.18' +__version__: str = '5.11.19' diff --git a/vstutils/models/cent_notify.py b/vstutils/models/cent_notify.py index 0cdfcba4..4c2a8b01 100644 --- a/vstutils/models/cent_notify.py +++ b/vstutils/models/cent_notify.py @@ -1,10 +1,10 @@ # cython: binding=True -import asyncio import typing as _t import logging import contextlib import orjson +from asgiref.sync import async_to_sync from django.db.models import signals from django.conf import settings from django.contrib.auth import get_user_model @@ -85,7 +85,7 @@ def clear_messages(self): def send(self): with contextlib.suppress(Exception): - return asyncio.run(self.asend()) + return async_to_sync(self.asend)() async def asend(self): try: