From e6e273645dc8c3d853991581e7939c42b9539edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Fri, 22 Sep 2023 19:41:52 +0200 Subject: [PATCH] donate_cpu_lib.py: increased the amount of upload tries (#5476) --- tools/donate_cpu_lib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/donate_cpu_lib.py b/tools/donate_cpu_lib.py index d2caabe10..83a0c3cbd 100644 --- a/tools/donate_cpu_lib.py +++ b/tools/donate_cpu_lib.py @@ -16,7 +16,7 @@ import copy # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic # changes) -CLIENT_VERSION = "1.3.48" +CLIENT_VERSION = "1.3.49" # Timeout for analysis with Cppcheck in seconds CPPCHECK_TIMEOUT = 30 * 60 @@ -654,7 +654,7 @@ def upload_results(package, results): print('Uploading results.. ' + str(len(results)) + ' bytes') try: - try_retry(__upload, fargs=('write\n' + package, results + '\nDONE', 'Result'), max_tries=4, sleep_duration=30, sleep_factor=1) + try_retry(__upload, fargs=('write\n' + package, results + '\nDONE', 'Result'), max_tries=20, sleep_duration=15, sleep_factor=1) except Exception as e: print('Result upload failed ({})!'.format(e)) return False @@ -669,7 +669,7 @@ def upload_info(package, info_output): print('Uploading information output.. ' + str(len(info_output)) + ' bytes') try: - try_retry(__upload, fargs=('write_info\n' + package, info_output + '\nDONE', 'Information'), max_tries=3, sleep_duration=30, sleep_factor=1) + try_retry(__upload, fargs=('write_info\n' + package, info_output + '\nDONE', 'Information'), max_tries=20, sleep_duration=15, sleep_factor=1) except Exception as e: print('Information upload failed ({})!'.format(e)) return False