Skip to content

Commit

Permalink
Add information on not enough files
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Dec 5, 2024
1 parent 686d755 commit 8eea531
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions librarian_background/rolling_deletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def core(self, session: Session):
valid_time = instance.created_time.replace(tzinfo=timezone.utc) < age_cutoff
valid_store = instance.store_id == store.id
all_ok = valid_time and valid_store and instance.available

if not all_ok:
logger.error(
"Instance {} does not meet the criteria, skipping", instance.id
Expand Down Expand Up @@ -144,8 +144,10 @@ def core(self, session: Session):
# Now check if we have enough!
if len(downstream) < self.number_of_remote_copies:
logger.warning(
"Instance {} does not have enough remote copies, skipping",
"Instance {} does not have enough remote copies {}/{}, skipping",
instance.id,
len(downstream),
self.number_of_remote_copies,
)
continue

Expand Down

0 comments on commit 8eea531

Please sign in to comment.