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
@@ -79,7 +79,6 @@ func Load(dir string) ([]Suite, error) {
|
||||
func (s Suite) PagePath(c Case) string { return filepath.Join(s.Dir, "pages", c.Name+".html") }
|
||||
func (s Suite) ReportPath(c Case) string { return filepath.Join(s.Dir, "pages", c.Name+".json") }
|
||||
|
||||
// Save writes a fetched page and its report.
|
||||
func (s Suite) Save(c Case, page []byte, report any) error {
|
||||
data, err := EncodeReport(report)
|
||||
if err != nil { return err }
|
||||
|
||||
Reference in new issue
Block a user