package org.onap.ccsdk.cds.blueprintsprocessor
-import kotlinx.coroutines.runBlocking
+import kotlinx.coroutines.GlobalScope
+import kotlinx.coroutines.launch
import org.onap.ccsdk.cds.blueprintsprocessor.core.service.BluePrintClusterService
import org.onap.ccsdk.cds.blueprintsprocessor.core.service.ClusterInfo
import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintConstants
private val log = logger(BluePrintProcessorCluster::class)
@EventListener(ApplicationReadyEvent::class)
- fun startAndJoinCluster() = runBlocking {
+ fun startAndJoinCluster() = GlobalScope.launch {
if (BluePrintConstants.CLUSTER_ENABLED) {
package org.onap.ccsdk.cds.blueprintsprocessor.selfservice.api
+import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.channels.consumeEach
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
}
@EventListener(ApplicationReadyEvent::class)
- fun setupMessageListener() = runBlocking {
+ fun setupMessageListener() = GlobalScope.launch {
try {
log.info(
"Setting up message consumer($CONSUMER_SELECTOR)" +