Skip to content

Commit

Permalink
feat(next/api): print ticket detect language retry times
Browse files Browse the repository at this point in the history
  • Loading branch information
uffy committed May 23, 2024
1 parent 7fb21ad commit f2aca27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions next/api/src/service/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit f2aca27

Please sign in to comment.