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
@@ -16,8 +16,8 @@ const (
NotFound
// Challenge is a bot check that a real browser may clear.
Challenge
// Blocked is a refusal without a recognisable challenge, e.g. a plain 403
// or 429. Back off and retry later.
// Blocked is a refusal without a recognisable challenge, such as a plain
// 403 or 429. The host is backed off and retried later.
Blocked
// HTTPError is any other non-2xx status.
HTTPError