Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

fix: clean up resources on Watch close - #1004

Merged
daniel-sanche merged 3 commits into
mainfrom
close_resources
Jan 10, 2025
Merged

fix: clean up resources on Watch close#1004
daniel-sanche merged 3 commits into
mainfrom
close_resources

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

Fixes#985

clears resources associated with the Watch class when calling close on an active instance

I opened googleapis/python-api-core#769 to address the memory leak in api_core, but this change will address it for firestore while waiting for the upstream fix

@daniel-sanche
daniel-sanche requested review from a teamJanuary 6, 2025 23:51
@product-auto-labelproduct-auto-labelBot added the size: xs Pull request size is extra small. label Jan 6, 2025
@product-auto-labelproduct-auto-labelBot added the api: firestore Issues related to the googleapis/python-firestore API. label Jan 6, 2025
@daniel-sanche
daniel-sanche merged commit 6d68dcd into mainJan 10, 2025
@daniel-sanche
daniel-sanche deleted the close_resources branch January 10, 2025 00:42
@release-pleaserelease-pleaseBot mentioned this pull request Jan 8, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestoreIssues related to the googleapis/python-firestore API.size: xsPull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch instances not getting garbage collected

4 participants

@daniel-sanche@gkevinzheng@cindy-peng@wu-hui