shriphani / pegasus

:racehorse:✈️ Pegasus is a scalable, modular, polite web-crawler for Clojure
http://getpegasus.io
Eclipse Public License 1.0
261 stars 17 forks source link

exponential backoff #8

Open shriphani opened 8 years ago

shriphani commented 8 years ago

A more diverse crawl policy.

shriphani commented 8 years ago

Might need to remove the implicit policy from the codebase and store it somewhere.

dhruvbhatia commented 8 years ago

Hey @shriphani, have you seen the https://github.com/joegallo/robert-bruce library? I quite like it as it supports both linear and exponential retries/ and has hooks for getting the retry count and choosing to backoff right out of the box.

May be a way to simply implement this rather than rewriting logic if you're happy to rely on an existing lib?

shriphani commented 8 years ago

this is beautiful - thanks for the link.