fix(queue-worker): don't log timeouts
This commit is contained in:
@@ -504,9 +504,6 @@ async function processJob(job: Job & { id: string }, token: string) {
|
|||||||
job: job.id,
|
job: job.id,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
logger.error(`🐂 Job timed out ${job.id}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error instanceof CustomError) {
|
if (error instanceof CustomError) {
|
||||||
// Here we handle the error, then save the failed job
|
// Here we handle the error, then save the failed job
|
||||||
@@ -516,6 +513,9 @@ async function processJob(job: Job & { id: string }, token: string) {
|
|||||||
if (error.stack) {
|
if (error.stack) {
|
||||||
logger.error(error.stack);
|
logger.error(error.stack);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
logger.error(`🐂 Job timed out ${job.id}`);
|
||||||
|
}
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
success: false,
|
success: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user