diff --git a/outpostcli/constants.py b/outpostcli/constants.py index 5e3e427..8264d05 100644 --- a/outpostcli/constants.py +++ b/outpostcli/constants.py @@ -1,2 +1,2 @@ -cli_version = "0.0.47" +cli_version = "0.0.48" CLI_BINARY_NAME = "outpostcli" diff --git a/outpostcli/lfs/part.py b/outpostcli/lfs/part.py index d37b1eb..643a4e5 100644 --- a/outpostcli/lfs/part.py +++ b/outpostcli/lfs/part.py @@ -1,8 +1,9 @@ +import logging from dataclasses import dataclass import requests from outpostkit.repository.lfs.logger import create_lfs_logger -from tenacity import retry, stop_after_attempt, wait_exponential +from tenacity import before_sleep_log, retry, stop_after_attempt, wait_exponential from outpostcli.lfs.exc import ProxyLFSException, handle_request_errors from outpostcli.lfs.file_slice import FileSlice @@ -21,10 +22,11 @@ class PartInfo: @handle_request_errors -@retry( - stop=stop_after_attempt(4), # Maximum number of retries - wait=wait_exponential(multiplier=1, min=1, max=60), # Exponential backoff -) +# @retry( +# stop=stop_after_attempt(4), # Maximum number of retries +# wait=wait_exponential(multiplier=1, min=4, max=60), # Exponential backoff +# before_sleep=before_sleep_log(_log, logging.INFO, exc_info=True), +# ) def retriable_upload_part(url: str, data: FileSlice): r = requests.put(url, data=data) r.raise_for_status() diff --git a/pyproject.toml b/pyproject.toml index fbdd3e5..9013901 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "outpostcli" -version = "0.0.47" +version = "0.0.48" description = "CLI for Outpost" readme = "README.md" license = { file = "LICENSE" } diff --git a/setup.py b/setup.py index e49117e..80cac8b 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="outpostcli", - version="0.0.47", + version="0.0.48", py_modules=["outpostcli"], install_requires=["Click", "outpostkit"], entry_points={