From 77bde57d0381c1ccb642a5f08c2ece4f595ab0e8 Mon Sep 17 00:00:00 2001 From: Neil Frow <675806+worthydolt@users.noreply.github.com> Date: Thu, 21 Jan 2021 12:44:08 +0000 Subject: [PATCH] Apid 38 (#14) * APID-38: WIP Add config and retrying status * APID-38 provide default values for retry config parameters * APID-38: add retrying of failed SOAP messages using scheduling play-scheduling library * APID-38 adds files not staged for commit in scheduled retry story * APID-38: updated following review. Checking for 2xx status made more obvious. Scheduled jobs disabled by default. TTL on messages made configurable though left at 30 days by default * APID-38: updated following review. Checking for 2xx status made more obvious. Scheduled jobs disabled by default. TTL on messages made configurable though left at 30 days by default * APID-38: add TTL config mistakenly remove in revert Co-authored-by: jameshall1999 --- app/uk/gov/hmrc/apiplatformoutboundsoap/config/AppConfig.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/uk/gov/hmrc/apiplatformoutboundsoap/config/AppConfig.scala b/app/uk/gov/hmrc/apiplatformoutboundsoap/config/AppConfig.scala index 105dfff..aad32b5 100644 --- a/app/uk/gov/hmrc/apiplatformoutboundsoap/config/AppConfig.scala +++ b/app/uk/gov/hmrc/apiplatformoutboundsoap/config/AppConfig.scala @@ -39,5 +39,7 @@ class AppConfig @Inject()(config: Configuration, servicesConfig: ServicesConfig) val retryInitialDelay: Duration = Duration(config.getOptional[String]("retry.initial.delay").getOrElse("30 sec")) val retryEnabled: Boolean = config.getOptional[Boolean]("retry.enabled").getOrElse(false) val retryJobLockDuration: Duration = Duration(config.getOptional[String]("retry.lock.duration").getOrElse("1 hr")) + val retryMessagesTtl: Duration = Duration(config.getOptional[String]("retry.messages.ttl").getOrElse("30 day")) + val parallelism: Int = config.getOptional[Int]("retry.parallelism").getOrElse(5) }