aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-08-15 10:58:12 +0200
committersonartech <sonartech@sonarsource.com>2018-08-16 09:45:58 +0200
commit2f72d8769a0ebd6414851c9f5cf3bd4111166881 (patch)
tree45ddc537c2b4710a5bd44f8bca44c82a4ba7775a /server/sonar-ce
parentdaefd280ad1c1887d7ce398c809232a51fed3f80 (diff)
downloadsonarqube-2f72d8769a0ebd6414851c9f5cf3bd4111166881.tar.gz
sonarqube-2f72d8769a0ebd6414851c9f5cf3bd4111166881.zip
Clean-up orphans of CE task inputs at any startup
Diffstat (limited to 'server/sonar-ce')
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/queue/CeQueueCleaner.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/queue/CeQueueCleaner.java b/server/sonar-ce/src/main/java/org/sonar/ce/queue/CeQueueCleaner.java
index 73a033c86c4..3f1c69d00a3 100644
--- a/server/sonar-ce/src/main/java/org/sonar/ce/queue/CeQueueCleaner.java
+++ b/server/sonar-ce/src/main/java/org/sonar/ce/queue/CeQueueCleaner.java
@@ -55,9 +55,8 @@ public class CeQueueCleaner implements Startable {
public void start() {
if (serverUpgradeStatus.isUpgraded() && !isBlueGreenDeployment()) {
cleanOnUpgrade();
- } else {
- cleanUpTaskInputOrphans();
}
+ cleanUpTaskInputOrphans();
}
private boolean isBlueGreenDeployment() {