Documentation
¶
Overview ¶
Package repeatlog keeps a recurring log line from flooding the log: a line is logged the first time it is seen in a scope, and the same line in the same scope is not logged again until Every has passed since it last was — and then with the number of repeats not logged in between. A DIFFERENT line in the scope is logged at once, and Limiter.Reset (the outcome changed: an agent was moved, a pool got a worker) lets the next line of the scope through whatever it says.
Why ¶
When every Claude account of an owner is cooling down, every pool submission and every failed turn asks the account failover again, and each logged the same "no other Claude account is usable" pair: ~46 lines a minute on a production deployment (2026-12-03), for days, until the weekly limit reset.
Index ¶
Constants ¶
const Every = 10 * time.Minute
Every is how long the same line in a scope stays unlogged.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter decides which lines are logged. The zero value is ready to use.