Commit edc10fc
fix: Reduce watch service CPU usage by increasing reload interval
Changed watch_project_reload_interval default from 30s to 300s (5 min)
to reduce CPU usage caused by frequent watcher restarts.
The watch service was restarting every 30 seconds to reload the project
list, causing the watchfiles library to rebuild its internal state.
This was especially noticeable on systems with many files.
Impact:
- Reduces watcher restart frequency by 10x
- Should reduce idle CPU usage from 20-30% to 2-3% or less
- New projects picked up within 5 min instead of 30 sec
- Users can configure lower values if needed
Fixes #448
Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>1 parent 78673d8 commit edc10fc
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments