mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-01 10:11:59 +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;
|
if (!bullJob && !dbJob) return null;
|
||||||
|
|
||||||
const data = gcsJob ?? dbJob?.docs ?? bullJob?.returnvalue;
|
const data = gcsJob ?? dbJob?.docs ?? bullJob?.returnvalue;
|
||||||
|
if (gcsJob === null && data) {
|
||||||
|
logger.warn("GCS Job not found", {
|
||||||
|
jobId: id,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const job: PseudoJob<any> = {
|
const job: PseudoJob<any> = {
|
||||||
id,
|
id,
|
||||||
@ -99,6 +104,11 @@ export async function getJobs(ids: string[]): Promise<PseudoJob<any>[]> {
|
|||||||
if (!bullJob && !dbJob) continue;
|
if (!bullJob && !dbJob) continue;
|
||||||
|
|
||||||
const data = gcsJob ?? dbJob?.docs ?? bullJob?.returnvalue;
|
const data = gcsJob ?? dbJob?.docs ?? bullJob?.returnvalue;
|
||||||
|
if (gcsJob === null && data) {
|
||||||
|
logger.warn("GCS Job not found", {
|
||||||
|
jobId: id,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const job: PseudoJob<any> = {
|
const job: PseudoJob<any> = {
|
||||||
id,
|
id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user