Skip to content

Conversation

@sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Nov 2, 2023

In Python 3.12 it's not possible to spawn new threads on interpreter shutdown. We patched our background worker that's responsible for sending events in an atexit hook to not attempt to send any pending events if it doesn't have an active thread in #2468. We can still use the main thread in that case though to avoid losing the pending events.

Closes #2478

@sentrivana
Copy link
Contributor Author

Closing this, will investigate other solutions.

@sentrivana sentrivana closed this Dec 6, 2023
@sentrivana sentrivana deleted the ivana/send-pending-events-in-main-thread-if-necessary branch January 30, 2024 13:41
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.

Send pending events on shutdown in 3.12

2 participants