[skip e2e]Add retry when getting image tag from dockerhub (#27107)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2023-09-15 15:53:26 +08:00 committed by GitHub
parent 060d3563ba
commit 83d37a677a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ loguru==0.7.0
# util
psutil==5.9.4
pandas==1.5.3
tenacity==8.1.0
# for standby test
etcd-sdk-python==0.0.2

View File

@ -1,6 +1,8 @@
import requests
import argparse
from tenacity import retry, stop_after_attempt
@retry(stop=stop_after_attempt(7))
def get_image_tag_by_short_name(repository, tag):
# Send API request to get all tags start with prefix