This is an automated email from the ASF dual-hosted git repository.

altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 9ca80ae  [BEAM-10381] Increase retries in pull_licenses_java.py from 3 
to 9.
     new 688ed5c  Merge pull request #12130 from ajamato/master
9ca80ae is described below

commit 9ca80ae9a0bfc527a39eeab717cc923e66bda793
Author: Alex Amato <ajam...@google.com>
AuthorDate: Mon Jun 29 22:16:35 2020 -0700

    [BEAM-10381] Increase retries in pull_licenses_java.py from 3 to 9.
---
 sdks/java/container/license_scripts/pull_licenses_java.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sdks/java/container/license_scripts/pull_licenses_java.py 
b/sdks/java/container/license_scripts/pull_licenses_java.py
index c3fc4ec..a587e30 100644
--- a/sdks/java/container/license_scripts/pull_licenses_java.py
+++ b/sdks/java/container/license_scripts/pull_licenses_java.py
@@ -35,16 +35,16 @@ from multiprocessing.pool import ThreadPool
 from queue import Queue
 from tenacity import retry
 from tenacity import stop_after_attempt
-from tenacity import wait_exponential
+from tenacity import wait_fixed
 from urllib.request import urlopen, URLError, HTTPError
 
 SOURCE_CODE_REQUIRED_LICENSES = ['lgpl', 'glp', 'cddl', 'mpl']
-RETRY_NUM = 3
+RETRY_NUM = 9
 THREADS = 16
 
 
 @retry(reraise=True,
-       wait=wait_exponential(multiplier=2),
+       wait=wait_fixed(5),
        stop=stop_after_attempt(RETRY_NUM))
 def pull_from_url(file_name, url, dep, no_list):
     if url == 'skip':

Reply via email to