From 5542cb9a6a042a3910fe8685b15e0dae401314e8 Mon Sep 17 00:00:00 2001 From: "Alexander A. Prokhorov" Date: Sun, 26 Jul 2020 00:22:11 +0300 Subject: [PATCH] =?UTF-8?q?Version=20update=20`0.7.1`=E2=86=92`0.7.2`=20+?= =?UTF-8?q?=20changelog.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 11 +++++++++++ pyproject.toml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d189ef6..e24960e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,17 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # Changelog +## [0.7.2] - 2020-07-26 + +- Quadratic growth of threads number has stopped. The problem was + observer on Python 3.6 and 3.7 and was not on 3.8, because starting + with 3.8 `ThreadPoolExecutor` does not spawn new thread if there are + idle threads in the pool already. The issue was in the fact that for + each of worker thread we run an event loop which default executor is + the `ThreadPoolExecutor` with default (by Python) number of threads. + All this eventually ended up in hundreds of thread created for each + `GraphqlWsConsumer` subclass. + ## [0.7.1] - 2020-07-25 - Python 3.6 compatibility brought back. diff --git a/pyproject.toml b/pyproject.toml index 04c4f18..e7d2a80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ build-backend = "poetry.masonry.api" # Docs: https://python-poetry.org/docs/ [tool.poetry] name = "django-channels-graphql-ws" -version = "0.7.1" +version = "0.7.2" description = """Django Channels based WebSocket GraphQL server with \ Graphene-like subscriptions""" authors = ["Alexander A. Prokhorov "]