alphagov/performanceplatform-collector — pull request #22 by jcbashdown (2014-05-23 11:56:21+00:00)
Title: Ga requests with backoff

Merge after https://github.com/alphagov/performanceplatform-collector/pull/16 so the diff is smaller

This creates a descendant of httplib2.Http which implements backoff on 403, 502 and 503
It's then injected instead of the standard httplib2.Http() instance and used by the google-api-python-client either directly or via Gapy passing the new HttpWithBackoff instance through.

It might be worth extracting this out into a library so other collectors may use gapy with backoffs