Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ignore_missing_imports = true

[tool.poetry]
name = "pyth-observer"
version = "3.0.1"
version = "3.0.2"
description = "Alerts and stuff"
authors = []
readme = "README.md"
Expand Down
8 changes: 1 addition & 7 deletions pyth_observer/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,7 @@ async def process_zenduty_events(self, current_time: datetime) -> None:
info["last_window_failures"] is not None
and info["last_window_failures"] <= resolution_threshold
)
# Check if current window has low failures (and alert was previously sent)
current_window_resolved = (
info["sent"]
and info["failures"] <= resolution_threshold
and info["failures"] < alert_threshold
)
if last_window_resolved or current_window_resolved:
if last_window_resolved:
logger.debug(f"Resolving Zenduty alert {identifier}")
resolved = True

Expand Down