Add scheduler, rate limiting and headless mode.

Hard-coded 60s URL and 10s host floors with jitter and per-host
backoff, shared between dibs processes through a locked state file.
The scheduler shuffles due URLs each round and runs one worker per
host; 'dibs --headless' watches and logs JSON.
This commit is contained in:
Overlord committed 2026-10-14 09:04:15 +02:00
1 parent bb010356a0
commit 2175c0e5aa
30 files changed
+1434 -126

No files matched your search

+2 -2
View File
@@ -107,8 +107,8 @@ func (ps positions) keyAt(line, col int) string {
for path, p := range ps {
if p.Line == line && p.Column <= col && p.Column >= bestCol {
// Prefer the longer path when an array element and its first key
// share a position.
// An array element and its first key can share a position; the
// longer path wins.
if p.Column > bestCol || len(path) > len(best) {
best, bestCol = path, p.Column
}