From 5171ba7113ebc7242527768afb9ab4cec534e3b3 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Tue, 8 Oct 2024 10:43:58 -0400 Subject: [PATCH] collapse AbortErrors --- packages/backend/src/queue/QueueProcessorService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/queue/QueueProcessorService.ts b/packages/backend/src/queue/QueueProcessorService.ts index fba7aa2526..83fce60ff0 100644 --- a/packages/backend/src/queue/QueueProcessorService.ts +++ b/packages/backend/src/queue/QueueProcessorService.ts @@ -130,7 +130,7 @@ export class QueueProcessorService implements OnApplicationShutdown { // 何故かeがundefinedで来ることがある if (!e) return '?'; - if (e instanceof Bull.UnrecoverableError) { + if (e instanceof Bull.UnrecoverableError || e.name === 'AbortError') { return `${e.name}: ${e.message}`; }