Skip to content

Commit

Permalink
query params
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-ya committed May 21, 2024
1 parent 6a3a067 commit f36a7f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions outpostcli/lfs/storage_class/gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ def gen_part_url(signed_url: str, part_num: int):
def gen_upload_specific_url(signed_url: str, upload_id: str):
return f"{signed_url}&uploadId={upload_id}"


def gen_initiate_multipart_url(signed_url: str):
return f"{signed_url}&uploads"


def gcs_multipart_upload(msg: Dict[str, Any]):
oid = msg["oid"]
filepath = msg["path"]
Expand Down
3 changes: 3 additions & 0 deletions outpostcli/lfs/storage_class/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def part_dict_list_to_xml(multi_parts: List[UploadedPartObject]):

@handle_request_errors
@retry(
reraise=True,
stop=stop_after_attempt(4), # Maximum number of retries
wait=wait_exponential(multiplier=1, min=1, max=60), # Exponential backoff
)
Expand All @@ -44,6 +45,7 @@ def complete_multipart_upload(url: str, parts: List[UploadedPartObject]):

@handle_request_errors
@retry(
reraise=True,
stop=stop_after_attempt(4), # Maximum number of retries
wait=wait_exponential(multiplier=1, min=1, max=60), # Exponential backoff
)
Expand All @@ -58,6 +60,7 @@ def initiate_multipart_upload(url: str) -> str:

@handle_request_errors
@retry(
reraise=True,
stop=stop_after_attempt(4), # Maximum number of retries
wait=wait_exponential(multiplier=1, min=1, max=60), # Exponential backoff
)
Expand Down

0 comments on commit f36a7f6

Please sign in to comment.