Skip to content

Send pending events on shutdown in 3.12 #2478

Closed as not planned
Closed as not planned
@sentrivana

Description

@sentrivana

Problem Statement

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.

Solution Brainstorm

Make the background worker aware that the interpreter is shutting down and if it doesn't have its own thread, make it use the main thread for sending any pending events. (Might not be possible.)

Or: Make the background worker always have a thread active?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions