mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-07-31 12:31:58 +08:00
feat(crawl-status): log if gcs job is not found
This commit is contained in:
parent
f64dd4a9a4
commit
e6d8792a32
@ -49,6 +49,11 @@ export async function getJob(id: string): Promise<PseudoJob<any> | 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<any> = {
|
||||
id,
|
||||
@ -99,6 +104,11 @@ export async function getJobs(ids: string[]): Promise<PseudoJob<any>[]> {
|
||||
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<any> = {
|
||||
id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user