From 9e01009e3db5517b3432762aa3db1321771ad188 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 12 Apr 2026 23:02:58 +0200 Subject: [PATCH] =?UTF-8?q?fix(async):=20revert=20to=20AbortPolicy=20?= =?UTF-8?q?=E2=80=94=20CallerRunsPolicy=20blocks=20requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CallerRunsPolicy would cause the HTTP request to hang for minutes if the queue is full. AbortPolicy with queue=100 is safe — the queue will never realistically fill for a family archive. If it somehow does, a clear error is better than a silent multi-minute hang. Co-Authored-By: Claude Sonnet 4.6 --- .../java/org/raddatz/familienarchiv/config/AsyncConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/raddatz/familienarchiv/config/AsyncConfig.java b/backend/src/main/java/org/raddatz/familienarchiv/config/AsyncConfig.java index 55847e60..51f11f57 100644 --- a/backend/src/main/java/org/raddatz/familienarchiv/config/AsyncConfig.java +++ b/backend/src/main/java/org/raddatz/familienarchiv/config/AsyncConfig.java @@ -20,7 +20,7 @@ public class AsyncConfig { executor.setMaxPoolSize(2); executor.setQueueCapacity(100); executor.setThreadNamePrefix("Async-"); - executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); + executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy()); return executor; } } \ No newline at end of file