Skip to content

Commit

Permalink
fix cache loading error on high concurrency
Browse files Browse the repository at this point in the history
extend the retry times, and add delay, jitter between tries.
  • Loading branch information
Chi Song authored and squirrelsc committed May 4, 2021
1 parent b04b150 commit d9440e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisa/sut_orchestrator/azure/platform_.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def _load_template(self) -> Any:
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]:
Expand Down

0 comments on commit d9440e3

Please sign in to comment.