mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 14:20:36 +08:00
fix(queue-worker): don't log timeouts
This commit is contained in:
parent
9f8b8c190f
commit
c327d688a6
@ -504,19 +504,19 @@ async function processJob(job: Job & { id: string }, token: string) {
|
||||
job: job.id,
|
||||
},
|
||||
});
|
||||
|
||||
if (error instanceof CustomError) {
|
||||
// Here we handle the error, then save the failed job
|
||||
logger.error(error.message); // or any other error handling
|
||||
}
|
||||
logger.error(error);
|
||||
if (error.stack) {
|
||||
logger.error(error.stack);
|
||||
}
|
||||
} else {
|
||||
logger.error(`🐂 Job timed out ${job.id}`);
|
||||
}
|
||||
|
||||
if (error instanceof CustomError) {
|
||||
// Here we handle the error, then save the failed job
|
||||
logger.error(error.message); // or any other error handling
|
||||
}
|
||||
logger.error(error);
|
||||
if (error.stack) {
|
||||
logger.error(error.stack);
|
||||
}
|
||||
|
||||
const data = {
|
||||
success: false,
|
||||
document: null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user