diff options
author | aosull01 <adrian.osullivan@huawei.com> | 2018-09-03 15:41:38 +0100 |
---|---|---|
committer | aosull01 <adrian.osullivan@huawei.com> | 2018-09-06 09:12:45 +0100 |
commit | ca4a9cd7a3c58bc327653b9e5ac4f0d1e97f2f96 (patch) | |
tree | 3b353e9c2209cbe3e6450c5381e93265c2de7c36 /src/main | |
parent | 6041103fc59c2d2c7461d2844582aee23086758f (diff) |
EXTAPI-139 : use fixedDelay
Issue-ID: EXTAPI-139
Change-Id: I59d0601b397a30df50dc52e42c2cc9234cf6ac28
Signed-off-by: aosull01 <adrian.osullivan@huawei.com>
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) { |