Fix bot running signal
This commit is contained in:
@@ -35,7 +35,7 @@ interface Web3ProxyHealthDetail {
|
||||
}
|
||||
|
||||
const HealthChecks: React.FC = () => {
|
||||
const {apiUrl, workerUrl} = useApiUrlStore()
|
||||
const {apiUrl} = useApiUrlStore()
|
||||
|
||||
// Use TanStack Query for API health check
|
||||
const {data: apiHealth, isLoading: isLoadingApi} = useQuery({
|
||||
@@ -57,15 +57,6 @@ const HealthChecks: React.FC = () => {
|
||||
}
|
||||
})
|
||||
|
||||
// Use TanStack Query for Worker health check
|
||||
const {data: workerHealth, isLoading: isLoadingWorker} = useQuery({
|
||||
queryKey: ['health', 'worker'],
|
||||
queryFn: async () => {
|
||||
const response = await fetch(`${workerUrl}/health`)
|
||||
if (!response.ok) throw new Error('Failed to fetch Worker health')
|
||||
return response.json() as Promise<HealthCheckResponse>
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
// Helper function to prepare table data from health response
|
||||
@@ -252,10 +243,6 @@ const HealthChecks: React.FC = () => {
|
||||
[candlesHealth]
|
||||
)
|
||||
|
||||
const workerHealthData = React.useMemo(() =>
|
||||
prepareHealthData('Managing Worker', workerHealth || null),
|
||||
[workerHealth]
|
||||
)
|
||||
|
||||
// Create service entries with loading states
|
||||
const services = [
|
||||
@@ -269,11 +256,6 @@ const HealthChecks: React.FC = () => {
|
||||
data: candlesHealthData,
|
||||
isLoading: isLoadingCandles,
|
||||
},
|
||||
{
|
||||
name: 'Managing Worker',
|
||||
data: workerHealthData,
|
||||
isLoading: isLoadingWorker,
|
||||
},
|
||||
]
|
||||
|
||||
// Get overall status for a service
|
||||
|
||||
Reference in New Issue
Block a user