Skip to content
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

uv does not pass PID 1 to child processes #8761

Closed
ejungcl opened this issue Nov 1, 2024 · 1 comment
Closed

uv does not pass PID 1 to child processes #8761

ejungcl opened this issue Nov 1, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@ejungcl
Copy link

ejungcl commented Nov 1, 2024

uv version: uv 0.4.23 (83f835b 2024-10-17)

When using uv to run a containerized gunicorn app, it will not pass along SIGTERM to children.

If I install a flask app with pip and run it with gunicorn as the ENTRYPOINT or CMD, it will handle SIGTERM as expected. However, if I use 'uv run', it will hang.

The only difference between the two run command is this:
CMD ["gunicorn", "--config", ...]
vs.
CMD["uv", "run", "gunicorn", "--config", ...]

http://blog.dscpl.com.au/2015/12/issues-with-running-as-pid-1-in-docker.html
https://petermalmgren.com/signal-handling-docker/

@zanieb
Copy link
Member

zanieb commented Nov 1, 2024

This is a duplicate of #6724

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2024
@zanieb zanieb added the duplicate This issue or pull request already exists label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants