From d61aba714f85a5a5473904cccbfbbc54c8d2fa99 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Thu, 26 Oct 2017 22:15:26 +0200 Subject: We never trigger component: Remove those events --- .../java/com/yahoo/vespa/hosted/controller/application/JobStatus.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java index 1c8aa2adada..d2f2e1ec18c 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java @@ -43,7 +43,9 @@ public class JobStatus { this.type = type; this.jobError = jobError; - this.lastTriggered = lastTriggered; + + // Nwever say we triggered component because we don't: + this.lastTriggered = type == DeploymentJobs.JobType.component ? Optional.empty() : lastTriggered; this.lastCompleted = lastCompleted; this.firstFailing = firstFailing; this.lastSuccess = lastSuccess; -- cgit v1.2.3 From 6b63a8f4db222e59a74b3818f9be7aeca0356557 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Thu, 26 Oct 2017 23:01:03 +0200 Subject: Correct comment typo --- .../java/com/yahoo/vespa/hosted/controller/application/JobStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java index d2f2e1ec18c..0b81a45922c 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java @@ -44,7 +44,7 @@ public class JobStatus { this.type = type; this.jobError = jobError; - // Nwever say we triggered component because we don't: + // Never say we triggered component because we don't: this.lastTriggered = type == DeploymentJobs.JobType.component ? Optional.empty() : lastTriggered; this.lastCompleted = lastCompleted; this.firstFailing = firstFailing; -- cgit v1.2.3