-
Notifications
You must be signed in to change notification settings - Fork 2
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
uvicorn Child process died
#21
Comments
Line 3 in 8811fdd
Still, something to look out for. |
In uvicorn 0.30 a new multiprocess manager was released, and this caused breakage in shmarql with the uvicorn parent process just dying. It looks like newer versions have now fixed this, so we can probably start using the newer versions, but we will have to pin to something a bit higher. To be tested... |
I see it pinned to
Did you test higher versions @epoz ? |
@ahirner - not extensively, there was no need for me to use a higher version yet. Please note that I have started working on a re-boot of shmarql in fasthtml which brings several improvements. May I ask, are you using shmarql for anything that I should be aware of with regards to breaking changes, or backwards compatibility? To date I thought there was not that many other users. |
Thanks! We are see the same error in a django app of ours. PS: as we speak, we found that granian doesn't suffer from dying workes and can restart them gracefully. |
Ah, clear... |
shmarql/Dockerfile
Line 39 in 8811fdd
When loading from store (and only if building the Docker image locally) the worker fails (snippet):
Loading from ttl works.
It also works if I run just one worker per
CMD ["uvicorn", "--workers", "1", "--host", "0.0.0.0", "--port", "8000", "app:app", "--log-level", "debug" ]
Very odd. Any idea why that is?
Maybe the uvicorn library has changed meanwhile (and is on an older version in origin docker image at ghcr.io/epoz/shmarql:latest)?
shmarql/requirements.txt
Line 3 in 8811fdd
The text was updated successfully, but these errors were encountered: