Skip to content

Commit

Permalink
Fix in timeout code
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Nov 15, 2024
1 parent c9f0063 commit 81a9e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librarian_background/rolling_deletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def core(self, session: Session):
deleted = 0
for instance in instances:
# First, see if we've timed out.
if datetime.datetime.now(timezone.utc) - core_begin > self.soft_timeout:
if (datetime.now(timezone.utc) - core_begin) > self.soft_timeout:
logger.warning(
"Ran out of time in deletion task! Only successfully deleted "
"{n}/{m} instances; we will return later",
Expand Down

0 comments on commit 81a9e56

Please sign in to comment.