donate_cpu_lib.py: increased the amount of upload tries (#5476)
This commit is contained in:
parent
bba96c5c8f
commit
e6e273645d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue