chore: add lab5 files and merge env.example.

This commit is contained in:
Голиков Maximillian Антон
2026-11-14 16:12:32 +03:00
parent 470d9d6f1e
commit 0d1a4261f8
93 changed files with 7085 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
package domain
import "time"
// FailedJob — реестр окончательно проваленных задач (DLQ-сторона).
// Заполняется worker'ом после исчерпания retry или при permanent-ошибке.
// Читается для операторского просмотра и для явного replay (Этап 5).
type FailedJob struct {
ID string
AttachmentID string
ReasonCode string // из jobcodes.go
Attempts int
LastErrorAt time.Time
ResolvedAt *time.Time // nil = не разобрана
Resolution string // "replayed", "manual_fix", ...
CreatedAt time.Time
}