Gunicorn and systemd socket with a runner (like uv) #3358
-
I've scratched my head around this issue and don't know if this is normal behavior, nor if I need to submit an issue for this. I have a superset app The nginx config:
and superset.socket
This setup worked great with a standard python venv, now with uv it's not working, I suspect the problem to be here : https://github.com/benoitc/gunicorn/blob/master/gunicorn/systemd.py#L38 I don't know what your opinion is on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is normal, applications are supposed to check whether the passed fds are intended "for them", see: If your wrapper does not do this for you after fork, try fixing up your |
Beta Was this translation helpful? Give feedback.
This is normal, applications are supposed to check whether the passed fds are intended "for them", see:
https://github.com/systemd/systemd/blob/104587314ff25a5c35390eeb42308f083e1e0488/src/libsystemd/sd-daemon/sd-daemon.c#L57
If your wrapper does not do this for you after fork, try fixing up your
environ["LISTEN_PID"]
yourself, ingunicorn.conf.py
?