Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api): relax optional fdb worker health check

mogery49e16e44a206
diff --git a/apps/api/src/services/worker/nuq-worker.ts b/apps/api/src/services/worker/nuq-worker.ts
index a5bdfb139..05d977188 100644
--- a/apps/api/src/services/worker/nuq-worker.ts
+++ b/apps/api/src/services/worker/nuq-worker.ts
@@ -42,7 +42,8 @@ import { initializeEngineForcing } from "../../scraper/WebScraper/utils/engine-f
);
app.get("/health", async (_, res) => {
const pgHealthy = await nuqHealthCheck();
- const fdbHealthy = !fdbQueueEnabled() || (await nuqFdbHealthCheck());
+ const fdbHealthy =
+ config.NUQ_BACKEND !== "fdb" || (await nuqFdbHealthCheck());
if (pgHealthy && fdbHealthy) {
res.status(200).send("OK");
} else {