From f8cb9d187ffbc9973aaac75cabac16f6ffa16ffa Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Sun, 11 Jun 2023 06:41:46 +0200 Subject: [PATCH] Adjusted retry delay on prices --- lib/EntsoePriceApi/src/EntsoeApi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/EntsoePriceApi/src/EntsoeApi.cpp b/lib/EntsoePriceApi/src/EntsoeApi.cpp index 654cd889..9aa44f0f 100644 --- a/lib/EntsoePriceApi/src/EntsoeApi.cpp +++ b/lib/EntsoePriceApi/src/EntsoeApi.cpp @@ -236,9 +236,9 @@ bool EntsoeApi::retrieve(const char* url, Stream* doc) { } else { lastError = status; if(status == 429) { - nextFetchDelayMinutes = 60; + nextFetchDelayMinutes = 15; } else if(status == 404) { - nextFetchDelayMinutes = 180; + nextFetchDelayMinutes = 60; } else { nextFetchDelayMinutes = 30; }