fix: Ensure video recordings upload before stopping artifact sync (#4316)

This commit is contained in:
Marc Kelechava
2025-12-17 12:57:53 -08:00
committed by GitHub
parent 8d8d766b2a
commit 0d6a070a80
2 changed files with 24 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ class AsyncAWSClient:
metadata: dict | None = None,
raise_exception: bool = False,
tags: dict[str, str] | None = None,
content_type: str | None = None,
) -> None:
# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/upload_file.html
try:
@@ -185,6 +186,8 @@ class AsyncAWSClient:
extra_args["Metadata"] = metadata
if tags:
extra_args["Tagging"] = self._create_tag_string(tags)
if content_type:
extra_args["ContentType"] = content_type
await client.upload_file(
Filename=file_path,
Bucket=parsed_uri.bucket,