-
Notifications
You must be signed in to change notification settings - Fork 147
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
cache cost results #2894
cache cost results #2894
Conversation
Co-authored-by: James Griffin <me@JamesGriff.in>
Co-authored-by: James Griffin <me@JamesGriff.in>
/test |
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3514208755 (with refid (in response to this comment from @guybartal) |
@martinpeck, FYI, I had to fix the UT to cope with the lru-cache |
/test |
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3515350780 (with refid (in response to this comment from @guybartal) |
Related to: #2887
What is being addressed
Reduces probability for Azure cost management throttling issue by caching result,
caching will improve performance by returning faster response for cached cost reports.
How is this addressed
CostService
as a singleton with@lru_cache(maxsize=None)
decorator