Closed jasonmokk closed 3 months ago
@jasonmokk, did you test this change in your local environment?
@jasonmokk, did you test this change in your local environment?
Yes, all tests are passing locally.
Your modification isn't covered by the test-suite. I can tell you right away this wont work because you didn't install the package and your worker class contains an hyphen, which is not allowed in Python.
Thank you for the feedback. I installed the uvicorn-worker
package locally and added it to requirements/base.txt
. I also corrected the worker class name to uvicorn_worker
. My apologies for the misunderstanding with the generated project tests, this time I correctly used Docker on my Mac machine and tests are passing.
The automated test suite of the generated project isn't covering uvicorn either, it's only used when starting the server with the unicorn commands, in the files that you changed.
Thanks for the contribution!
Description
This PR replaces all references to the deprecated
uvicorn.workers
module in favor ofuvicorn-worker
.Closes #5109
Checklist:
Rationale