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:
1 parent
bb010356a0
commit
2175c0e5aa
30 files changed
+1434
-126
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user