From f2aca2703849b0f92f41fbd2640108dace476880 Mon Sep 17 00:00:00 2001 From: Uffy Date: Thu, 23 May 2024 16:20:51 +0800 Subject: [PATCH] feat(next/api): print ticket detect language retry times --- next/api/src/service/ticket.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next/api/src/service/ticket.ts b/next/api/src/service/ticket.ts index cd20c9861..0ca711eb8 100644 --- a/next/api/src/service/ticket.ts +++ b/next/api/src/service/ticket.ts @@ -68,6 +68,9 @@ export class TicketService { }, }); this.detectLangQueue.process((job) => { + if (job.attemptsMade > 1) { + console.log(`[TicketService] ticket ${job.data.ticketId} detect language job failed ${job.attemptsMade} times`); + } return this.detectTicketLanguage(job.data.ticketId); }); }