summaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-04-28 12:21:06 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-04-28 12:21:06 +0200
commitcf34e9531e5c6df18f4fc696e2ebfd705057bea3 (patch)
tree25eb03b4f4d03356f15fd747a84dab174a26c379 /controller-server/src/main/java
parent58a75b5d9ba635b028fb774d0aacbed6ea12fe56 (diff)
Jobs without a readyAt timestamp are pending
Diffstat (limited to 'controller-server/src/main/java')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
index 455759a3b41..c5da5755474 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
@@ -1055,7 +1055,7 @@ public class ApplicationApiHandler extends LoggingRequestHandler {
response.setObject("applicationVersion"), deployment.applicationVersion());
if (!status.jobsToRun().containsKey(stepStatus.job().get()))
response.setString("status", "complete");
- else if (stepStatus.readyAt(instance.change()).map(controller.clock().instant()::isBefore).orElse(false))
+ else if (stepStatus.readyAt(instance.change()).map(controller.clock().instant()::isBefore).orElse(true))
response.setString("status", "pending");
else response.setString("status", "running");
});