Skip to content

feat(runtime-sdk): Add serialize option in WSGI entrypoint - #240

Open
ryanking13 wants to merge 4 commits into
mainfrom
gyeongjae/serialize
Open

feat(runtime-sdk): Add serialize option in WSGI entrypoint#240
ryanking13 wants to merge 4 commits into
mainfrom
gyeongjae/serialize

Conversation

@ryanking13

Copy link
Copy Markdown
Contributor

As we discussed internally, this adds a serialize option to wsgi handler so that users can serialize each request if there applications are not async safe.

Originally, I thought we should add this to asgiref.sync.sync_to_async, but I realized that WSGI applications don't use asgiref.sync.sync_to_async at all, and it is for using synchronous ORMs inside async handlers in ASGI applications. So I ended up locking the entire request.

We can probably add the same option to asgi.py as well, but asgi.py is a bit more compliated due to lifespans, so I would like to discuss and land this to wsgi first.

@ask-bonk

ask-bonk Bot commented Aug 31, 2026

Copy link
Copy Markdown

LGTM!

github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant