chore: worker unreachable state
This commit is contained in:
@@ -273,7 +273,6 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
|
||||
type="link"
|
||||
size="small"
|
||||
style={{ paddingLeft: 0 }}
|
||||
icon={<IconFont type="icon-logs" />}
|
||||
onClick={() =>
|
||||
handleChildSelect('viewlog', item, list)
|
||||
}
|
||||
|
||||
@@ -2,17 +2,20 @@ import { StatusMaps } from '@/config';
|
||||
|
||||
export const WorkerStatusMap = {
|
||||
ready: 'ready',
|
||||
not_ready: 'not_ready'
|
||||
not_ready: 'not_ready',
|
||||
unreachable: 'unreachable'
|
||||
};
|
||||
|
||||
export const WorkerStatusMapValue = {
|
||||
[WorkerStatusMap.ready]: 'Ready',
|
||||
[WorkerStatusMap.not_ready]: 'Not Ready'
|
||||
[WorkerStatusMap.not_ready]: 'Not Ready',
|
||||
[WorkerStatusMap.unreachable]: 'Unreachable'
|
||||
};
|
||||
|
||||
export const status: any = {
|
||||
[WorkerStatusMap.ready]: StatusMaps.success,
|
||||
[WorkerStatusMap.not_ready]: StatusMaps.error
|
||||
[WorkerStatusMap.not_ready]: StatusMaps.error,
|
||||
[WorkerStatusMap.unreachable]: StatusMaps.error
|
||||
};
|
||||
|
||||
export const addWorkerGuide: Record<string, any> = {
|
||||
|
||||
Reference in New Issue
Block a user