diff --git a/cannaiq/src/pages/WorkersDashboard.tsx b/cannaiq/src/pages/WorkersDashboard.tsx index 60a3ad31..4773894b 100644 --- a/cannaiq/src/pages/WorkersDashboard.tsx +++ b/cannaiq/src/pages/WorkersDashboard.tsx @@ -292,16 +292,6 @@ export function WorkersDashboard() { } }, []); - // Cleanup stale workers - const handleCleanupStale = async () => { - try { - await api.post('/api/worker-registry/cleanup', { stale_threshold_minutes: 2 }); - fetchData(); - } catch (err: any) { - console.error('Cleanup error:', err); - } - }; - // Remove a single worker const handleRemoveWorker = async (workerId: string) => { if (!confirm('Remove this worker from the registry?')) return; @@ -364,23 +354,13 @@ export function WorkersDashboard() { {workers.length} registered workers ({busyWorkers.length} busy, {idleWorkers.length} idle)

-
- - -
+ {error && (