-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Out of the blue , granian crash without reason on any load/usage . Anyway to debug that? #491
Comments
Setting the environment variable Also, it might worth checking wether using |
thanks , i will try and see if it crash again and report to you. |
Same error here too. In the logs I just randomly get:
PS: I start Granian from python (should I not for some reason?): import os
import granian
import granian.asgi
from granian.constants import Interfaces
if __name__ == "__main__":
# Debug on crash?
os.environ["RUST_BACKTRACE"] = "full"
granian.Granian(
"myapp.main:app", address="0.0.0.0", port=8000, interface=Interfaces.ASGI, threads=5, log_access=True
).serve() PS2: |
Feels like a segfault. Could you test also with task_impl set to asyncuo? |
I'm pretty sure this is how is already since I starting it from Python and because of this: Line 732 in 22e3145
PS: It's not easy to reproduce, since it's happening on production with a lot of async load |
I see. Any additional context on the workload to add? Eg: the type of traffic you're handling, websockets Vs http, type of io load in the app, etc |
Also, this might affect performance, but does it make any difference running on asyncio event loop instead of uvloop? |
We are not using websocket but using SSE/EventSource. and the workload is very mininaml we are just testing with 3 developers. |
[ERROR] Unexpected exit from worker-1
[INFO] Shutting down granian
The text was updated successfully, but these errors were encountered: