Усиление контейнеров и проверка отказоустойчивости
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user