Implement DownloadToS3Block (#133)

This commit is contained in:
Kerem Yilmaz
2024-03-28 16:46:54 -07:00
committed by GitHub
parent 57062952b8
commit 3d1b146470
6 changed files with 128 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ def execute_with_async_client(client_type: AWSClientType) -> Callable:
self = args[0]
assert isinstance(self, AsyncAWSClient)
session = aioboto3.Session()
async with session.client(client_type) as client:
async with session.client(client_type, region_name=SettingsManager.get_settings().AWS_REGION) as client:
return await f(*args, client=client, **kwargs)
return wrapper