Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude worker_ctx from cleanups #41

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/import.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

from httpout import worker, context # noqa: F401
from httpout import ne # noqa: F401
2 changes: 1 addition & 1 deletion httpout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2024 nggit

__version__ = '0.0.44'
__version__ = '0.0.45'
__all__ = ('HTTPOut',)

from .httpout import HTTPOut # noqa: E402
5 changes: 3 additions & 2 deletions httpout/httpout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading