Files
Void-Homelab/lib/jobs/index.js
root ce26895d8e feat: 2.0.0-alpha.11 — DB-backed service registry + LAN auto-discovery
- monitored_services table (mig 015) replaces config/services.json (now a boot seed)
- owner CRUD over /api/health/services; GET is DB-backed; cron+worker read the DB
- discover.lan worker: pure-Node TCP sweep + HTTP-title probe -> disabled 'discovered'
  candidates (never clobbers curated entries); POST /api/health/discover + GET .../discovered
- dashboard: Scan button + Discovered(N) section with one-click promote

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 07:55:08 +10:00

18 lines
647 B
JavaScript

import * as queue from './queue.js';
import * as echo from './workers/echo.js';
import * as url from './workers/url.js';
import * as blob from './workers/blob.js';
import * as embed from './workers/embed.js';
import * as karakeep from './workers/karakeep.js';
import * as speedtest from './workers/speedtest.js';
import * as healthCheck from './workers/health_check.js';
import * as discover from './workers/discover.js';
const WORKERS = [echo, url, blob, embed, karakeep, speedtest, healthCheck, discover];
export async function registerWorkers() {
for (const w of WORKERS) {
await queue.subscribe(w.NAME, w.handler, w.opts || {});
}
}