simple test DAG
This commit is contained in:
parent
5a30741e29
commit
a7c82b0d61
|
@ -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=key, bucket_name=bucket, local_path=archive, preserve_file_name=True, use_autogenerated_subdir=False)
|
||||
hook.download_file(key=key, bucket_name=bucket, local_path=tmp_dir, 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