#356 Retry downloading repodata from Pulp
Merged 4 years ago by lsedlar. Opened 4 years ago by lsedlar.
lsedlar/odcs retry-download  into  master

@@ -32,13 +32,14 @@ 

  from flufl.lock import Lock

  

  from odcs.server import log, conf

- from odcs.server.utils import makedirs, execute_cmd

+ from odcs.server.utils import makedirs, execute_cmd, retry

  

  

  class MergeRepo(object):

      def __init__(self, compose):

          self.compose = compose

  

+     @retry(wait_on=(requests.ConnectionError, ), logger=log)

      def _download_file(self, path, url):

          """

          Downloads repodata file, stores it into `path`/repodata and returns

Use the same retry approach as for contacting MBS.

Pull-Request has been merged by lsedlar

4 years ago