feat(worker): lab5 add exponential backoff retries and permanent error classification

This commit is contained in:
Голиков Maximillian Антон
2026-11-10 15:28:20 +03:00
parent 8fb191fc78
commit 996e305ea4
3 changed files with 91 additions and 25 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func main() {
}
defer ch.Close()
// Prefetch: сколько сообщений worker берет разом (защита от перегрузки)
// Сколько сообщений worker берет разом (защита от перегрузки)
ch.Qos(2, 0, false)
q, err := ch.QueueDeclare("attachments.process", true, false, false, false, nil)