perf: rotateDepth batch 30/cycle (90 credit) — full universe coverage ~26 cycle
CI / go test + web typecheck (push) Canceled after 0s
CI / build + deploy (Nix) — flowsight (push) Canceled after 0s

This commit is contained in:
asepharyana
2026-09-16 01:13:23 +07:00
parent 6fd89b6c19
commit defe8b46db
+2 -1
View File
@@ -389,7 +389,8 @@ func (s *Scheduler) rotateDepth(ctx context.Context) error {
if start >= len(missing) { if start >= len(missing) {
start = 0 start = 0
} }
batch := 10 // 3 credits/ticker = 30 credits; leaves headroom within the cap batch := 30 // 3 credits/ticker = 90 credits; universe sweep (27) runs once
// per day so a normal cycle stays within the 120 cap.
for i := 0; i < batch; i++ { for i := 0; i < batch; i++ {
t := missing[(start+i)%len(missing)] t := missing[(start+i)%len(missing)]
if err := s.tickerDepth(ctx, t); err != nil { if err := s.tickerDepth(ctx, t); err != nil {