diff --git a/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java b/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java index a3cb1e75232..c4307c533ac 100644 --- a/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java +++ b/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java @@ -539,6 +539,9 @@ public class OverlordResource } if (status.isPresent()) { data.put("statusCode", status.get().getStatusCode().toString()); + if(status.get().isComplete()) { + data.put("duration", status.get().getDuration()); + } } return data; }