summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/modules
diff options
context:
space:
mode:
authorOleg Mitsura <oleg.mitsura@amdocs.com>2020-03-31 04:29:40 -0400
committerOleg Mitsura <oleg.mitsura@amdocs.com>2020-03-31 04:29:40 -0400
commit6227c809d094e9d5de961c0274a39560cfa812a1 (patch)
treecaacb7d8aca306420014ce01026c89447bc41b00 /ms/blueprintsprocessor/modules
parent383f847e97275e59542b0ed54b40cb18cc034d88 (diff)
better err msg on failures during timeouts.
Issue-ID: CCSDK-2039 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: Ic76d024bffbf91d3056227c5533a9fd8e1b2d80b
Diffstat (limited to 'ms/blueprintsprocessor/modules')
-rw-r--r--ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt b/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt
index 7a0f167fa..6e3d04a24 100644
--- a/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt
+++ b/ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/AbstractComponentFunction.kt
@@ -49,6 +49,7 @@ abstract class AbstractComponentFunction : BlueprintFunctionNode<ExecutionServic
lateinit var operationName: String
lateinit var nodeTemplateName: String
var timeout: Int = 180
+ val timeoutDeltaInMillis = 100L
var operationInputs: MutableMap<String, JsonNode> = hashMapOf()
override fun getName(): String {
@@ -124,7 +125,7 @@ abstract class AbstractComponentFunction : BlueprintFunctionNode<ExecutionServic
override suspend fun applyNB(executionServiceInput: ExecutionServiceInput): ExecutionServiceOutput {
try {
prepareRequestNB(executionServiceInput)
- withTimeout(timeout * 1000L) {
+ withTimeout(timeout * 1000L + timeoutDeltaInMillis) {
log.debug("DEBUG::: AbstractComponentFunction.withTimeout section $timeout seconds")
processNB(executionServiceInput)
}