Closed vickenty closed 6 months ago
Use register_at_fork added in Python 3.7+ to transparently handle process fork when the client is using background threads.
register_at_fork
Forking support is introduced in several layers:
os.register_at_fork
This approach is similar to one used in dd-trace-py for handling forks.
changelog/
backward-incompatible
do-not-merge/
kind/
severity/
What does this PR do?
Use
register_at_fork
added in Python 3.7+ to transparently handle process fork when the client is using background threads.Description of the Change
Forking support is introduced in several layers:
os.register_at_fork
.This approach is similar to one used in dd-trace-py for handling forks.
Alternate Designs
Possible Drawbacks
Verification Process
Additional Notes
Release Notes
Review checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.