summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redfish-core/include/redfish_aggregator.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/redfish-core/include/redfish_aggregator.hpp b/redfish-core/include/redfish_aggregator.hpp
index cb0ce39fc4..24b42d95e4 100644
--- a/redfish-core/include/redfish_aggregator.hpp
+++ b/redfish-core/include/redfish_aggregator.hpp
@@ -134,7 +134,8 @@ class RedfishAggregator
{
private:
const std::string retryPolicyName = "RedfishAggregation";
- const uint32_t retryAttempts = 5;
+ const std::string retryPolicyAction = "TerminateAfterRetries";
+ const uint32_t retryAttempts = 1;
const uint32_t retryTimeoutInterval = 0;
const std::string id = "Aggregator";
@@ -146,6 +147,8 @@ class RedfishAggregator
crow::HttpClient::getInstance().setRetryConfig(
retryAttempts, retryTimeoutInterval, aggregationRetryHandler,
retryPolicyName);
+ crow::HttpClient::getInstance().setRetryPolicy(retryPolicyAction,
+ retryPolicyName);
}
static inline boost::system::error_code