Skip to content

Commit

Permalink
fix: real hash of HealthcheckItem
Browse files Browse the repository at this point in the history
- it turns out that id() is not truly unique
  • Loading branch information
furkan-bilgin committed Oct 16, 2024
1 parent a8da5c8 commit c84735d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daq/jobs/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def handle_checks(self):

# Alert if it's new
for item, should_alert in res:
item_id = id(item.to_json())
item_id = hash(item.to_json())
if should_alert and item_id not in self._sent_alert_items:
self._sent_alert_items.add(item_id)
self.send_alert(item)
Expand Down

0 comments on commit c84735d

Please sign in to comment.