Skip to content

Fix fork safety for singleton SDK#26

Merged
jdwyah merged 3 commits intomainfrom
fix-fork-safe-singleton
Mar 19, 2026
Merged

Fix fork safety for singleton SDK#26
jdwyah merged 3 commits intomainfrom
fix-fork-safe-singleton

Conversation

@jdwyah
Copy link
Copy Markdown
Contributor

@jdwyah jdwyah commented Mar 18, 2026

Summary

  • reset inherited singleton state in forked children with a child-only at-fork hook
  • preserve configured options so workers lazily create a fresh SDK instance after fork
  • bump the package version to 1.2.2 and add POSIX fork tests

Testing

  • poetry run pytest tests/test_forking.py

Copy link
Copy Markdown

@ayip8 ayip8 left a comment

Choose a reason for hiding this comment

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

thanks

Copy link
Copy Markdown

@ayip8 ayip8 left a comment

Choose a reason for hiding this comment

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

great

@jdwyah jdwyah merged commit a644e35 into main Mar 19, 2026
7 checks passed
@jdwyah jdwyah deleted the fix-fork-safe-singleton branch March 19, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants