From 26c25313d0bfa79c047dae98ecb3f78ecb98595a Mon Sep 17 00:00:00 2001 From: nggit <12218311+nggit@users.noreply.github.com> Date: Thu, 7 Nov 2024 06:58:52 +0700 Subject: [PATCH 1/2] exclude worker_ctx from cleanups --- examples/import.py | 1 + httpout/httpout.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/import.py b/examples/import.py index 65f7704..b1e17b8 100644 --- a/examples/import.py +++ b/examples/import.py @@ -1,2 +1,3 @@ +from httpout import worker, context # noqa: F401 from httpout import ne # noqa: F401 diff --git a/httpout/httpout.py b/httpout/httpout.py index e2fe30f..21ae341 100644 --- a/httpout/httpout.py +++ b/httpout/httpout.py @@ -317,8 +317,9 @@ async def _on_request(self, **server): cleanup_modules, server['modules'], (module.print, module.run, module.wait, - server['response'], - server['context']) + worker_ctx, + server['context'], + server['response']) ) await server['response'].join() server['modules'].clear() From 5e57874e70e7f83864cfc149cbf4d21bed98b52d Mon Sep 17 00:00:00 2001 From: nggit <12218311+nggit@users.noreply.github.com> Date: Thu, 7 Nov 2024 07:01:07 +0700 Subject: [PATCH 2/2] release 0.0.45 --- httpout/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpout/__init__.py b/httpout/__init__.py index e0f825f..f60f9ec 100644 --- a/httpout/__init__.py +++ b/httpout/__init__.py @@ -1,6 +1,6 @@ # Copyright (c) 2024 nggit -__version__ = '0.0.44' +__version__ = '0.0.45' __all__ = ('HTTPOut',) from .httpout import HTTPOut # noqa: E402