From 44eecaf92f1e353b3da97a99c03a7e2a0e599d31 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 2 Mar 2022 12:43:22 +0530 Subject: [PATCH] Increase timeout for thumbnail gen 10s -> 30s During testing, observed that for multiple copies of the same HEIC files, the thumbnail was blank for some files due to timeout error. Increasing this timeout fixed the issue. --- src/services/upload/thumbnailService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/upload/thumbnailService.ts b/src/services/upload/thumbnailService.ts index b6f1d3903..baa1a9c61 100644 --- a/src/services/upload/thumbnailService.ts +++ b/src/services/upload/thumbnailService.ts @@ -15,7 +15,7 @@ const MAX_THUMBNAIL_SIZE = 100 * 1024; const MIN_QUALITY = 0.5; const MAX_QUALITY = 0.7; -const WAIT_TIME_THUMBNAIL_GENERATION = 10 * 1000; +const WAIT_TIME_THUMBNAIL_GENERATION = 30 * 1000; interface Dimension { width: number;