simple test DAG
This commit is contained in:
parent
7edb0c5a7e
commit
4128d1c863
|
@ -33,7 +33,7 @@ def unzip_to_s3(key: str, bucket: str):
|
|||
|
||||
with TemporaryDirectory() as tmp_dir:
|
||||
archive = f'{tmp_dir}/{key}'
|
||||
hook.download_file(key, bucket_name=bucket, local_path=archive)
|
||||
hook.download_file(key, bucket_name=bucket, local_path=archive, preserve_file_name=True, use_autogenerated_subdir=False)
|
||||
with zipfile.ZipFile(archive, 'r') as zip_ref:
|
||||
zip_ref.extractall(tmp_dir)
|
||||
|
||||
|
|
Loading…
Reference in New Issue