Add cache size monitoring to detect potential memory leaks#143
Merged
chrisguidry merged 2 commits intomainfrom Jun 24, 2025
Merged
Add cache size monitoring to detect potential memory leaks#143chrisguidry merged 2 commits intomainfrom
chrisguidry merged 2 commits intomainfrom
Conversation
|
📚 Documentation has been built for this PR! You can download the documentation directly here: |
4421345 to
941b374
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #143 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 28 28
Lines 3561 3570 +9
Branches 191 191
=========================================
+ Hits 3561 3570 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Added CACHE_SIZE gauge metric to track the size of global caches that could grow unbounded during infinite retry scenarios. Instrumented three key caches: - Function signature cache (_signature_cache) - Dependency parameter cache (_parameter_cache) - Annotation cache (_cache) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
941b374 to
9a1f101
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
• Added CACHE_SIZE gauge metric to track global cache sizes that could grow unbounded
• Instrumented function signature, dependency parameter, and annotation caches
• Added memory leak reproduction script and psutil dependency for testing
This addresses issue #135 by providing monitoring capabilities to identify if global caches are the source of memory leaks during infinite retry scenarios with unique task parameters.
🤖 Generated with Claude Code