mirror of https://github.com/apache/druid.git
fix worker disable rendering (#15712)
This commit is contained in:
parent
dd03f7061a
commit
c8c04f1032
|
@ -554,12 +554,13 @@ ORDER BY
|
|||
switch (row.service_type) {
|
||||
case 'middle_manager':
|
||||
case 'indexer': {
|
||||
if (deepGet(row, 'worker.version') === '') return 'Disabled';
|
||||
const { workerInfo } = row;
|
||||
if (!workerInfo) {
|
||||
return 'Could not get detail info';
|
||||
}
|
||||
|
||||
if (workerInfo.worker.version === '') return 'Disabled';
|
||||
|
||||
const details: string[] = [];
|
||||
if (workerInfo.lastCompletedTaskTime) {
|
||||
details.push(`Last completed task: ${workerInfo.lastCompletedTaskTime}`);
|
||||
|
|
Loading…
Reference in New Issue