Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use main thread for sending pending events on shutdown #2481

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send pending events on shutdown in 3.12
1 participant