зеркало из https://github.com/microsoft/lisa.git
fix cache loading error on high concurrency
extend the retry times, and add delay, jitter between tries.
This commit is contained in:
Родитель
b04b150458
Коммит
d9440e3cda
|
@ -695,7 +695,7 @@ class AzurePlatform(Platform):
|
|||
template = json.load(f)
|
||||
return template
|
||||
|
||||
@retry(tries=2)
|
||||
@retry(tries=10, delay=1, jitter=(0.5, 1))
|
||||
def _load_location_info_from_file(
|
||||
self, cached_file_name: Path, log: Logger
|
||||
) -> Optional[AzureLocation]:
|
||||
|
|
Загрузка…
Ссылка в новой задаче