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

Improvements in use of python SharedMemory #26

Merged
merged 7 commits into from
Jan 6, 2025
Merged

Improvements in use of python SharedMemory #26

merged 7 commits into from
Jan 6, 2025

Conversation

tskisner
Copy link
Owner

@tskisner tskisner commented Jan 5, 2025

  • Remove previous patch and instead ship a backport of the changes which are in python 3.13. This allows the "track=False" option when creating SharedMemory segments.

  • In order to better handle cleanup, keep a registry of all memory segments allocated on every process. Register a cleanup handler for python atexit and also register a cleanup handler for signals such as SIGTERM.

  • Expand unit tests

  • Convert build to pyproject.toml with minimal setup.py backend.

  • Improve test and deployment workflows.

- Remove previous patch and instead ship a backport of the changes
  which are in python 3.13.  This allows the "track=False" option
  when creating SharedMemory segments.

- In order to better handle cleanup, keep a registry of all memory
  segments allocated on every process.  Register a cleanup handler
  for python atexit and also register a cleanup handler for signals
  such as SIGTERM.

- Expand unit tests

- Convert build to pyproject.toml with minimal setup.py backend.

- Improve test and deployment workflows.
@tskisner tskisner merged commit 48b946c into master Jan 6, 2025
7 checks passed
@tskisner tskisner deleted the shmem_fix branch January 6, 2025 06:28
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