mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Add retry when getting image tag from dockerhub (#27107)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/27128/head
parent
060d3563ba
commit
83d37a677a
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue