mirror of https://github.com/apache/druid.git
add task duration in response for completed tasks
This commit is contained in:
parent
e5532367e1
commit
4681ff22ed
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue