Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jan 10, 2025
1 parent 5a8956b commit ca662de
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions terraform/modules/services/airflow/dags/utils/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def determine_latest_zarr(bucket: str, prefix: str):
keys_to_delete = s3hook.list_keys(bucket_name=bucket, prefix=prefix + "/latest.zarr/")
s3hook.delete_objects(bucket=bucket, keys=keys_to_delete)

#

# move latest zarr file to latest.zarr using s3 batch jobs
s3hook.log.info(f"Creating {prefix}/latest.zarr/")

Expand All @@ -49,7 +47,6 @@ def determine_latest_zarr(bucket: str, prefix: str):
dest_bucket_name=bucket,
dest_bucket_key=prefix + "/latest.zarr/" + key.split(zarrs[0])[-1],
)
s3hook.delete_objects(bucket=bucket, keys=source_keys)

else:
s3hook.log.info("No changes to latest.zarr required")
Expand Down

0 comments on commit ca662de

Please sign in to comment.