Skip to content

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

fix(worker/antistall/kickoff): bad check (#1859)

Gergő Móricze86798f905a0
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts
index a52b3df09..ae692f203 100644
--- a/apps/api/src/services/queue-worker.ts
+++ b/apps/api/src/services/queue-worker.ts
@@ -1644,7 +1644,7 @@ app.listen(workerPort, () => {
const sc = (await getCrawl(job.data.crawl_id)) as StoredCrawl;
- if (job.mode === "kickoff") {
+ if (job.data.mode === "kickoff") {
await finishCrawlKickoff(job.data.crawl_id);
if (sc) {
await finishCrawlIfNeeded(job, sc);