Skip to content

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

fix(queue-worker): don't log timeouts

Gergő Móriczc327d688a64b
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts
index e44f65b3b..428e7e01f 100644
--- a/apps/api/src/services/queue-worker.ts
+++ b/apps/api/src/services/queue-worker.ts
@@ -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,