From 7fba564273a32215c58d34a747693d9df2001308 Mon Sep 17 00:00:00 2001 From: Seshu Kumar M Date: Mon, 2 Nov 2020 17:47:29 +0000 Subject: Revert "Fixed the lock times and populated error variable" This reverts commit 342703276a0b5e1a031890010dfae5b5a8ab0d66. Reason for revert: so basic health check failed. Issue-ID: SO-3353 Change-Id: I28fb81c21703b8ec98906dd3bcbf74351c3e0164 Signed-off-by: seshukm --- .../main/java/org/onap/so/utils/ExternalTaskServiceUtils.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'common/src/main/java/org/onap') diff --git a/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java b/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java index 1a8307e8bc..c601b88ae5 100644 --- a/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java +++ b/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java @@ -64,6 +64,16 @@ public class ExternalTaskServiceUtils { return Integer.parseInt(env.getProperty("workflow.topics.maxClients", "10")); } + public Long getLockDuration() { + Long lockDuration = Long.parseLong(env.getProperty("mso.audit.lock-time", "60000")); + return lockDuration; + } + + public Long getLongLockDuration() { + Long lockDuration = Long.parseLong(env.getProperty("mso.long.lock-time", "600000")); + return lockDuration; + } + @ScheduledLogging @Scheduled(fixedDelay = 30000) public void checkAllClientsActive() { -- cgit 1.2.3-korg