Merge "EXTAPI-139 : use fixedDelay"
authorMatthieu Geerebaert <matthieu.geerebaert@orange.com>
Thu, 6 Sep 2018 08:46:44 +0000 (08:46 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 6 Sep 2018 08:46:44 +0000 (08:46 +0000)
src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskManager.java

index 3365525..fa1d5a2 100644 (file)
@@ -94,8 +94,8 @@ public class SOTaskManager {
         registerOrderItemExecutionPlan(serviceOrder.getOrderItem(), serviceOrderInfoJson);
     }
 
-
-    @Scheduled(fixedRate = 2000)
+    // Using fixedDelay to mitigate against Scheduler queue backlog with fixedRate 
+    @Scheduled(fixedDelay = 2000)
     private void processExecutionPlan() throws InterruptedException {
         List<ExecutionTask> taskToExecute = executionTaskRepository.findByReliedTasksIsEmpty();
         for (ExecutionTask executionTask : taskToExecute) {