Skip to content

Commit

Permalink
Release 5.11.19
Browse files Browse the repository at this point in the history
### Changelog:
- Fix(backend): Possible bug with asyncio freeze on centrifugo sent.
  • Loading branch information
onegreyonewhite committed Dec 12, 2024
1 parent bd091ef commit 51dc245
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions requirements-prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down
2 changes: 1 addition & 1 deletion vstutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pylint: disable=django-not-available
__version__: str = '5.11.18'
__version__: str = '5.11.19'
4 changes: 2 additions & 2 deletions vstutils/models/cent_notify.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 51dc245

Please sign in to comment.