diff --git a/apps/api/src/controllers/v1/crawl-status.ts b/apps/api/src/controllers/v1/crawl-status.ts index 680db785..bcefa9c3 100644 --- a/apps/api/src/controllers/v1/crawl-status.ts +++ b/apps/api/src/controllers/v1/crawl-status.ts @@ -49,6 +49,11 @@ export async function getJob(id: string): Promise | null> { if (!bullJob && !dbJob) return null; const data = gcsJob ?? dbJob?.docs ?? bullJob?.returnvalue; + if (gcsJob === null && data) { + logger.warn("GCS Job not found", { + jobId: id, + }); + } const job: PseudoJob = { id, @@ -99,6 +104,11 @@ export async function getJobs(ids: string[]): Promise[]> { if (!bullJob && !dbJob) continue; const data = gcsJob ?? dbJob?.docs ?? bullJob?.returnvalue; + if (gcsJob === null && data) { + logger.warn("GCS Job not found", { + jobId: id, + }); + } const job: PseudoJob = { id,