From a100174f476efc260c5c01d6fcc4e537d2afb1e9 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Tue, 8 Jun 2021 15:04:06 +0800 Subject: [PATCH] ci: retry download artifacts --- tools/ci/python_packages/gitlab_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ci/python_packages/gitlab_api.py b/tools/ci/python_packages/gitlab_api.py index ed65389b54..70862f8ecf 100644 --- a/tools/ci/python_packages/gitlab_api.py +++ b/tools/ci/python_packages/gitlab_api.py @@ -98,6 +98,7 @@ class Gitlab(object): return res return wrapper + @retry_download # type: ignore def download_artifact(self, job_id, artifact_path, destination=None): """ download specific path of job artifacts and extract to destination. @@ -150,7 +151,7 @@ class Gitlab(object): job_id_list.append({"id": job.id, "parallel_num": match.group(3)}) return job_id_list - @retry_download + @retry_download # type: ignore def download_archive(self, ref, destination, project_id=None): """ Download archive of certain commit of a repository and extract to destination path