Skip to content

Fix crash on shutdown#847

Open
askedrelic wants to merge 2 commits intoemmett-framework:masterfrom
askedrelic:askedrelic/fix-metrics-crash
Open

Fix crash on shutdown#847
askedrelic wants to merge 2 commits intoemmett-framework:masterfrom
askedrelic:askedrelic/fix-metrics-crash

Conversation

@askedrelic
Copy link
Copy Markdown

Fixes #846
Note: generated with Claude assistance

The first commit makes the most sense, to drop the handle. And fixes the crash.

During my testing with profiling, the 2nd commit came up as another race and seems like an optional, larger fix, but makes sense for fixing on most Python versions.

@gi0baro
Copy link
Copy Markdown
Member

gi0baro commented May 7, 2026

The first commit is correct.
The 2nd one is just wrong, and it can potentially cause a lot of weird issues.
If you rebase just keeping the first commit I can accept this.

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.

Crash on shutdown, with metrics enabled

2 participants