Skip to content

Commit

Permalink
added object list message and timing
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Jul 19, 2024
1 parent ee933f9 commit c9b26e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csd3-side/scripts/lsst-backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,9 @@ def error(self, message):
print('dryrun == True, so continuing.')

bucket = s3.Bucket(bucket_name)
print(f'Getting current object list for {bucket_name}. This may take some time.\nStarting at {datetime.now()}, elapsed time = {datetime.now() - start}')
current_objects = bm.object_list(bucket)
print(f'Done.\nFinished at {datetime.now()}, elapsed time = {datetime.now() - start}')

## check if log exists in the bucket, and download it and append top it if it does
# TODO: integrate this with local check for log file
Expand Down

0 comments on commit c9b26e3

Please sign in to comment.