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) {
|
switch (row.service_type) {
|
||||||
case 'middle_manager':
|
case 'middle_manager':
|
||||||
case 'indexer': {
|
case 'indexer': {
|
||||||
if (deepGet(row, 'worker.version') === '') return 'Disabled';
|
|
||||||
const { workerInfo } = row;
|
const { workerInfo } = row;
|
||||||
if (!workerInfo) {
|
if (!workerInfo) {
|
||||||
return 'Could not get detail info';
|
return 'Could not get detail info';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (workerInfo.worker.version === '') return 'Disabled';
|
||||||
|
|
||||||
const details: string[] = [];
|
const details: string[] = [];
|
||||||
if (workerInfo.lastCompletedTaskTime) {
|
if (workerInfo.lastCompletedTaskTime) {
|
||||||
details.push(`Last completed task: ${workerInfo.lastCompletedTaskTime}`);
|
details.push(`Last completed task: ${workerInfo.lastCompletedTaskTime}`);
|
||||||
|
|
Loading…
Reference in New Issue