Page MenuHomeSoftware Heritage

Remove the option to use a WSGI server
ClosedPublic

Authored by jayeshv on Sep 1 2022, 10:51 AM.

Details

Summary

Use only ASGI to serve the API.
Change makefile target to use UvicornWorker with gunicorn.
This will allow the server to use asynchronous features.
doc:
https://www.uvicorn.org/#running-with-gunicorn

Diff Detail

Repository
rDGQL GraphQL API
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D8374 (id=30216)

Rebasing onto ce8008dfb3...

Current branch diff-target is up to date.
Changes applied before test
commit 660acc6aa44897e45cd53da7ff1d95b77761b2f6
Author: Jayesh Velayudhan <jayesh@softwareheritage.org>
Date:   Thu Sep 1 10:38:17 2022 +0200

    Remove the option to use a WSGI server
    
    Use only ASGI to serve the API.
    Change makefile target to use UvicornWorker with gunicorn.
    This will allow the server to use asynchronous features.

See https://jenkins.softwareheritage.org/job/DGQL/job/tests-on-diff/146/ for more details.

This revision is now accepted and ready to land.Sep 1 2022, 10:58 AM
This revision was automatically updated to reflect the committed changes.