Усиление контейнеров и проверка отказоустойчивости

This commit is contained in:
EgorAnti
2026-11-26 17:26:19 +03:00
parent d23847f953
commit 60fa12ce6e
24 changed files with 418 additions and 68 deletions
@@ -154,6 +154,13 @@ public class AttachmentWorker {
outcome = "interrupted";
} catch (ExecutionException execution) {
Throwable cause = execution.getCause();
log.atWarn()
.addKeyValue("event", "attachment_processing_attempt_failed")
.addKeyValue("job.type", AttachmentJob.TYPE)
.addKeyValue("attempt", attempt)
.addKeyValue("error.type", cause.getClass().getName())
.setCause(cause)
.log("Attachment processing attempt failed");
if (cause instanceof ImageVariantProcessor.ProcessingException imageFailure
&& imageFailure.permanent()) {
failPermanent(job, leaseToken, imageFailure.errorCode(), deliveryTag, channel);
+2 -2
View File
@@ -34,8 +34,8 @@ spring:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
connect-timeout: ${REDIS_CONNECT_TIMEOUT:1s}
timeout: ${REDIS_COMMAND_TIMEOUT:500ms}
connect-timeout: ${REDIS_CONNECT_TIMEOUT:5s}
timeout: ${REDIS_COMMAND_TIMEOUT:2s}
username: ${REDIS_USER:messenger-api}
password: ${REDIS_PASSWORD:}
ssl: