Skip to content

Commit

Permalink
[BEAM-10381] Increase retries in pull_licenses_java.py from 3 to 9.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Amato committed Jun 30, 2020
1 parent 51bd3a4 commit 9ca80ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdks/java/container/license_scripts/pull_licenses_java.py
Expand Up @@ -35,16 +35,16 @@
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':
Expand Down

0 comments on commit 9ca80ae

Please sign in to comment.