Bogdanp / Bogdanp/dramatiq

When running in --watch mode there are memory leak warnings

Open
#601 1 comment 1 reaction 0 assignees View on GitHub
beginner friendly bug
Dominant language
Python
Stars
5.3k
Forks
383
Avg merge
9h 41m
Merged PRs (30d)
2

Description

# Issues

Running the simple `example.py` with `dramatiq --watch . example` will show the following warning on file changes:

```
/home/.pyenv/versions/3.12.1/lib/python3.12/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 51 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
```

## What OS are you using?

MacOS Ventura

## What version of Dramatiq are you using?

v1.15.0 (pip install)

## What did you do?

Just run the simple example

## What did you expect would happen?

No warnings about memory leaks

## What happened?

Wether using python 3.12.1 or 3.10.13 the warning is shown on restart due to file change.

Stopping the app via Ctrl-C will shutdown without any warnings

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.