From 2180254ced7ca697ce0e4b3fe99627f6b0644a7c Mon Sep 17 00:00:00 2001 From: Tal Date: Mon, 30 Dec 2024 14:02:09 +0200 Subject: [PATCH] fix(opsgenie): retry on 404 as well (#2936) --- keep/providers/opsgenie_provider/opsgenie_provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/keep/providers/opsgenie_provider/opsgenie_provider.py b/keep/providers/opsgenie_provider/opsgenie_provider.py index 5da0aed0a..5daeb5750 100644 --- a/keep/providers/opsgenie_provider/opsgenie_provider.py +++ b/keep/providers/opsgenie_provider/opsgenie_provider.py @@ -70,6 +70,7 @@ def __init__( ): super().__init__(context_manager, provider_id, config) self.configuration = opsgenie_sdk.Configuration() + self.configuration.retry_http_response = ["429", "500", "502-599", "404"] self.configuration.api_key["Authorization"] = self.authentication_config.api_key def validate_scopes(self):