From f72187e2775b80204d68b9ece10290ab354b44a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Thu, 20 Apr 2023 18:31:06 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8C=9B=20fix:=20time=20out=20hub=20push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/jina_cloud.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index a3d9c6c..3488563 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -65,8 +65,7 @@ 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: - _push_executor(dir_path) - break + return _push_executor(dir_path) except timeout_decorator.timeout_decorator.TimeoutError: print('timeout error, retrying...') if i == 2: