Skip to content

Hide harmless loky warning#2011

Open
psavery wants to merge 1 commit into
masterfrom
hide-loky-warning
Open

Hide harmless loky warning#2011
psavery wants to merge 1 commit into
masterfrom
hide-loky-warning

Conversation

@psavery
Copy link
Copy Markdown
Collaborator

@psavery psavery commented May 13, 2026

Here is the warning, which would occur when closing the application:

/usr/local/lib/python3.14/multiprocessing/resource_tracker.py:396: UserWarning: resource_tracker: There appear to be 2 leaked semaphore objects to clean up at shutdown: {'/loky-853470-5i9c59nk', '/loky-853470-v_q7ann3'}

This also moves the logic for ignoring warnings into an ignore_warnings.py file.

Here is the warning, which would occur when closing the application:

```python
/usr/local/lib/python3.14/multiprocessing/resource_tracker.py:396: UserWarning: resource_tracker: There appear to be 2 leaked semaphore objects to clean up at shutdown: {'/loky-853470-5i9c59nk', '/loky-853470-v_q7ann3'}
```

This also moves the logic for ignoring warnings into an
`ignore_warnings.py` file.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@psavery psavery requested a review from bnmajor May 13, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant