mapbox / mapbox-isochrone

Isochrone generator built atop the Mapbox Matrix API, with CONREC polygonization.
MIT License
119 stars 28 forks source link

Auto-retry rate-limited failures #15

Closed peterqliu closed 6 years ago

peterqliu commented 6 years ago

Piggybacking on https://github.com/mapbox/mapbox-isochrone/pull/14, this implements a more graceful way to handle failures stemming from rate-limited Matrix requests. Instead of a hard fail, the method retries each 429'd request at 10-second intervals, until success.

the full isochrone does not return until either all 429'd requests are successfully retried, or some other hard error throws.

cc/ @danpat