Skip to content

Commit

Permalink
added comment about zephir check not setting timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Nov 11, 2024
1 parent 7029fe4 commit ffc85f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions aim/digifeeds/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ def barcode(self) -> str:

@property
def in_zephir_for_long_enough(self) -> bool:
"""
Returns whether or not the item has had metadata in zephir for more than
14 days. The production database saves timestamps in Eastern Time. K8s
runs in UTC. Because this is checking days, this function doesn't set the
timezone because it's not close enough to matter.
Returns:
bool: whether or not the item's metadata has been in zephir for more than 14 days.
"""
waiting_period = 14 # days
in_zephir_status = next(
(
Expand Down

0 comments on commit ffc85f5

Please sign in to comment.