Skip to content

Commit

Permalink
Fix GC
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Sep 7, 2023
1 parent f600547 commit 3f4edf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eagleproject/notify/triggers/vault_oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def run_trigger(transfers, new_transfers):
continue
except RPCError as e:
print("RPC Error when reading price for {}".format(symbol), e)
if "below peg" in e.message or retries <= 0:
if "Asset price" in e.message or retries <= 0:
events.append(
event_high(
"RPC Error when reading price for {} 🔴".format(symbol),
Expand Down
2 changes: 1 addition & 1 deletion eagleproject/notify/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def gc(request):
# event_seen is time sensitive and old entries are irrelevant
try:
EventSeen.objects.filter(
last_seen__gt=datetime.utcnow() - timedelta(hours=24)
last_seen__lt=datetime.utcnow() - timedelta(hours=24)
).delete()
except Exception:
log.exception(
Expand Down
2 changes: 1 addition & 1 deletion eagleproject/scripts/gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def run():
# event_seen is time sensitive and old entries are irrelevant
try:
EventSeen.objects.filter(
last_seen__gt=datetime.utcnow() - timedelta(hours=24)
last_seen__lt=datetime.utcnow() - timedelta(hours=24)
).delete()
except Exception:
log.exception(
Expand Down

0 comments on commit 3f4edf4

Please sign in to comment.