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

List all imported schemas? #357

Open
tpt5cu opened this issue Mar 28, 2024 · 0 comments
Open

List all imported schemas? #357

tpt5cu opened this issue Mar 28, 2024 · 0 comments

Comments

@tpt5cu
Copy link

tpt5cu commented Mar 28, 2024

My team and I encountered a nasty capnp issue. We have a python application running in a multithreaded environment. Nominally, we dynamically import capnp schemas at runtime, populate them, send our serialized data, and all is good.

However I noticed that if bugs were encountered in the serialization process, sometimes these capnp schemas were not released from the global_schema_parser.

We were able to fix these issues by running capnp.cleanup_global_schema_parser(), but this hunch was more of guess and check than anything.

Is there a way to list all imported schemas ?
How does capnp ensure that imported schemas are properly released from the GIL when a python thread exits ?

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

No branches or pull requests

1 participant