Skip to content

Auto-detect packages that use multiple threads#31

Merged
piercefreeman merged 6 commits into
mainfrom
feature/auto-discover-multi-thread-launch
Jun 9, 2026
Merged

Auto-detect packages that use multiple threads#31
piercefreeman merged 6 commits into
mainfrom
feature/auto-discover-multi-thread-launch

Conversation

@piercefreeman

@piercefreeman piercefreeman commented Jun 9, 2026

Copy link
Copy Markdown
Owner

To properly fork our template process and avoid deadlocks in the launched children, we need to ensure that no dependencies instantiate threads during import. Most known offenders are the numerical computation packages like numpy; but not all of them.

This PR auto-scans for packages that do launch threads in a throwaway process before we start to build up the base package. This ensures that these dependencies are left for the last mile after fork.

@piercefreeman piercefreeman merged commit c6bfbc7 into main Jun 9, 2026
12 checks passed
@piercefreeman piercefreeman deleted the feature/auto-discover-multi-thread-launch branch June 9, 2026 03:29
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