Repository navigation
feat: lift reserves and client shares hours before the weekly reset - #22
Merged
Merged
Conversation
free_before_reset_hours (default 6, 0 to 168, 0 disables): within that many hours of an account's weekly reset, or monthly when its longest window is a month, its reserve and client shares stop applying so the rest of the window gets used. Settings > End of the week.
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.
What is left of a week is lost at its reset. A new setting,
free_before_reset_hours(default 6, 0 to 168, 0 disables), lifts an account's limits in the last hours before its weekly reset: its reserve and client shares stop applying, so the account serves until it runs out./v1/quotaswith a client key shows the raw windows while the shares are lifted.Tests:
shares_stop_holding_back_hours_before_the_weekly_reset,a_reserve_stops_applying_hours_before_the_weekly_reset; full workspace green locally.Settings page, sample data (
pnpm mock), new section after "Refresh and timeouts":