Skip to content

Deprioritize files that have been recently queued - #709

Merged
StephenCWills merged 1 commit into
masterfrom
XDA-103
Aug 6, 2026
Merged

Deprioritize files that have been recently queued#709
StephenCWills merged 1 commit into
masterfrom
XDA-103

Conversation

@StephenCWills

Copy link
Copy Markdown
Member
  • Add FileWatcher.DeprioritizationThreshold to system settings
  • Save LastQueuedAtWatcherPriority to the file index
    • This will be saved in-memory, associated with the whole file group
    • The file index gets recreated in OnReconfigure(), so updating configuration in system settings will cause the system to forget LastQueuedAtWatcherPriority
    • WatchDirectoryBalancerNode invokes ReconfigureWatchDirectories() which bypasses OnReconfigure() so it thankfully does not recreate the index
  • Default deprioritization threshold is 0, meaning it shouldn't deprioritize at all unless the system clock changes

@StephenCWills
StephenCWills requested a review from elwills August 5, 2026 17:43
@StephenCWills
StephenCWills enabled auto-merge August 6, 2026 13:47
@StephenCWills
StephenCWills merged commit 78acfae into master Aug 6, 2026
3 checks passed
@StephenCWills
StephenCWills deleted the XDA-103 branch August 6, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants