diff options
author | Matthieu Geerebaert <matthieu.geerebaert@orange.com> | 2018-09-06 08:46:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-06 08:46:44 +0000 |
commit | 2ede3ffbcb422795d0d3a733dbe60228ad0ace0d (patch) | |
tree | eae25a067bbdb9124c2ba992e148f7f67a44e240 /src/main | |
parent | 5ff60761a7a8147ab93947ffff04491e548dbb56 (diff) | |
parent | ca4a9cd7a3c58bc327653b9e5ac4f0d1e97f2f96 (diff) |
Merge "EXTAPI-139 : use fixedDelay"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskManager.java b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskManager.java index 3365525..fa1d5a2 100644 --- a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskManager.java +++ b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskManager.java @@ -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) { |