commit | 411f4bbc5c1a52acebf1e5ec13d5f98943e99b19 | [log] [tgz] |
---|---|---|
author | Masayuki Igawa <masayuki@igawa.io> | Thu Aug 08 16:15:11 2019 +0900 |
committer | Masayuki Igawa <masayuki@igawa.io> | Thu Aug 08 18:24:40 2019 +0900 |
tree | d4d4cd272860c1e1df7b2df13e428a043e76f6e9 | |
parent | ecc33b29c8bfdde6d299a6c632b394d83887c32a [diff] |
Retry http requests to generate plugins list This commit retries http requests to generate a plugins list. We often see internal server errors(500) in the gate. It makes sanity jobs fail. So, it would be better to retry internally instead of 'recheck'. To accomplish it, this uses urllib3 module. NOTE: The default total number of retries[0] is 10. It should be enough for us. [0] https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html#urllib3.util.retry.Retry Change-Id: Id3da3e2895fc2324d5a2db91f82b12ec5bb610f8