Skip to content

Fixed a problem that prevented multiple AnyPyTools instances#131

Merged
melund merged 7 commits intomasterfrom
fix-multiple-anypytools
Nov 19, 2025
Merged

Fixed a problem that prevented multiple AnyPyTools instances#131
melund merged 7 commits intomasterfrom
fix-multiple-anypytools

Conversation

@melund
Copy link
Member

@melund melund commented Nov 19, 2025

Fixed a problem that prevented multiple AnyPyTools instances from running simultaneously in the same process. Previously, other running AnyBody instances were shut down when the first AnyPyProcess.start_macro() call finished.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a critical bug where multiple AnyPyProcess instances running in the same process would interfere with each other. Previously, when one instance finished its start_macro() call, it would terminate all running AnyBody processes, including those belonging to other instances.

Key Changes:

  • Each AnyPyProcess instance now maintains its own _local_subprocess_container instead of sharing a global container
  • Added a __del__ method to ensure proper cleanup of instance-specific subprocesses
  • Added support for tuple input in start_macro() macrolist parameter
  • Added debug capability to use Python's standard Popen instead of JobPopen on Windows via environment variable

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
pixi.toml Version bump to 1.20.0
anypytools/init.py Version bump to 1.20.0
CHANGELOG.md Added release notes for v1.20.0 describing the fix
anypytools/abcutils.py Core fix: added per-instance subprocess containers, __del__ method, tuple support, and debug mode

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

melund and others added 3 commits November 19, 2025 13:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@melund melund merged commit 24efd1e into master Nov 19, 2025
6 checks passed
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.

2 participants