Skip to content

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

fix(queue-worker): add cancelled to crawl log

Gergő Móricz6e549422654a
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts
index 089e0aa78..7be12dad1 100644
--- a/apps/api/src/services/queue-worker.ts
+++ b/apps/api/src/services/queue-worker.ts
@@ -233,7 +233,7 @@ async function processJob(job: Job, token: string) {
await logJob({
job_id: job.data.crawl_id,
success: jobStatus === "completed",
- message: message,
+ message: sc.cancelled ? "Cancelled" : message,
num_docs: fullDocs.length,
docs: [],
time_taken: (Date.now() - sc.createdAt) / 1000,