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

BUG: Leaked Semaphore Objects with Uvicorn #67

Open
2 tasks
kalbfled opened this issue Nov 5, 2024 · 0 comments
Open
2 tasks

BUG: Leaked Semaphore Objects with Uvicorn #67

kalbfled opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels
Dev Reviewed Reviewed by Tech Lead Notify Board trigger PM Reviewed Reviewed by Product Manager QA Reviewed Reviewed by Quality Assurance

Comments

@kalbfled
Copy link
Member

kalbfled commented Nov 5, 2024

Description

  • Ticket is understood, and QA has been contacted (if the ticket has a QA label).

When shutting down the app locally while using only uvicorn, this is displayed:

...va-enp-api$ /usr/lib/python3.12/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 16 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

The number of leaked semaphores varies.

Steps to Reproduce

Locally, in a terminal:

  1. Start the database: docker compose -f ci/docker-compose-local.yml up enp-db -d
  2. Run the app: poetry run uvicorn app.main:app --reload
  3. After you see, "Application startup complete," press Ctrl-C to shut down the app, and behold the warning.

Impact/Urgency

Low

Expected Behavior

  • No warnings during uvicorn shutdown

Additional Info & Resources

@kalbfled kalbfled added the Notify Board trigger label Nov 5, 2024
@cris-oddball cris-oddball added the QA Reviewed Reviewed by Quality Assurance label Nov 5, 2024
@k-macmillan k-macmillan changed the title BUG: leaked semaphore objects BUG: Leaked Semaphore Objects with Uvicorn Nov 5, 2024
@k-macmillan k-macmillan added the Dev Reviewed Reviewed by Tech Lead label Nov 5, 2024
@kbelikova-oddball kbelikova-oddball added the PM Reviewed Reviewed by Product Manager label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Reviewed Reviewed by Tech Lead Notify Board trigger PM Reviewed Reviewed by Product Manager QA Reviewed Reviewed by Quality Assurance
Projects
None yet
Development

No branches or pull requests

5 participants