From 13f9663e18ccacf0589d5d3e47202f8171767d44 Mon Sep 17 00:00:00 2001 From: Balamurali M Date: Mon, 23 Dec 2024 14:28:11 +0530 Subject: [PATCH] fix(agent-request-failure): Skip archived servers --- .../press/doctype/agent_request_failure/agent_request_failure.py | 1 + 1 file changed, 1 insertion(+) diff --git a/press/press/doctype/agent_request_failure/agent_request_failure.py b/press/press/doctype/agent_request_failure/agent_request_failure.py index fb5b8f1f79..cac2de5637 100644 --- a/press/press/doctype/agent_request_failure/agent_request_failure.py +++ b/press/press/doctype/agent_request_failure/agent_request_failure.py @@ -37,6 +37,7 @@ def remove_old_failures(): failures = frappe.get_all( "Agent Request Failure", ["name", "server_type", "server", "failure_count"], + {"status": ("!=", "Archived")}, order_by="creation ASC", ) for failure in failures: