Skip to content

Commit

Permalink
on abort
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-ya committed May 21, 2024
1 parent ded288f commit d5e3753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions outpostcli/lfs/storage_class/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
)

import requests
from outpostkit.repository.lfs.logger import create_lfs_logger
from tenacity import retry, stop_after_attempt, wait_exponential

from outpostcli.lfs.exc import handle_request_errors
from outpostcli.lfs.types import UploadedPartObject

_log = create_lfs_logger(__name__)


def try_extracting_part_number(s: str):
match = re.match(r"part_(\d+)", s)
Expand Down Expand Up @@ -61,4 +64,5 @@ def initiate_multipart_upload(url: str) -> str:
def abort_multipart_upload(url: str):
r = requests.delete(url)
r.raise_for_status()
_log.info(f"aborted multipart upload: {url}")
return r

0 comments on commit d5e3753

Please sign in to comment.