Commit ac1d337
authored
perf: gate daily quality sweep to off-peak hours (18:00-23:59 local) (#5131)
* perf: gate daily quality sweep to off-peak hours (18:00-23:59 local)
Anthropic doubles token allowance during off-peak (6 PM-12 AM UK time).
Quality sweep findings trigger LLM worker dispatch via the pulse, so
landing findings in this window means resulting workers also run at 2x
rates. Health issues and person stats continue on their existing
15-min/hourly cadence unaffected.
Override with QUALITY_SWEEP_OFFPEAK=0 to force daytime runs.
* chore: log when quality sweep is deferred by off-peak gate
Addresses CodeRabbit nitpick — adds visibility into why sweeps
don't run during daytime hours.1 parent 92a6318 commit ac1d337
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
892 | 907 | | |
893 | 908 | | |
894 | 909 | | |
| |||
0 commit comments