diff --git a/setup.py b/setup.py index f685c74..1588cc4 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def read_requirements(): setup( name='gptdeploy', - version='0.18.26', + version='0.18.27', description='Use natural language interface to generate, deploy and update your microservice infrastructure.', long_description=open('README.md', 'r', encoding='utf-8').read(), long_description_content_type='text/markdown', diff --git a/src/__init__.py b/src/__init__.py index 30e33c7..93bcfd2 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.18.26' +__version__ = '0.18.27' from src.cli import main \ No newline at end of file diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index 91c1619..41e2475 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -62,6 +62,16 @@ In this case, please cancel this run, rerun your gptdeploy command and login int def push_executor(dir_path): + for i in range(3): + try: + return _push_executor(dir_path) + except Exception as e: + if i == 2: + raise e + print(f'connection error - retrying in 5 seconds...') + time.sleep(5) + +def _push_executor(dir_path): dir_path = Path(dir_path) md5_hash = hashlib.md5() bytesio = archive_package(dir_path)