🐛 Parametrize budget rollover into a configuration #1562
Merged
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.
Pull Request
Description
A long long time ago, we had implemented a system (called "Rollover") that upon a new fiscal year, would reduce a workspace's budget by the amount they used in the prior fiscal year. E.g. DW1 used $60 out of $100 budget during fiscal year 2024-2025, on
April 1st 2025, it's budget would be lowered to $40. This was to match the Azure budgets, since they have their spending reset yearly on April 1st, so in the same example, in Azure, DW1's spending would be $0 and its budget would be $40 on April 1st 2025, effectively "rolling over" the leftover credits into the new year.
This system was made based on old assumptions, and we don't exactly make good use of Azure budgets anymore. In addition, I did not want this to happen unexpectedly, so I decided to make that behaviour a configuration, which is off by default. We can re-enable it if we want to keep it
Related Issues
Changes
Testing
Checklist