lab5: исправления по ревью
Concurrent complete no longer deletes the shared verified source; admission is atomic and covers pending presign rows; relay reconciles queued jobs lost to dead-lettering; failed staging is protected until failed_retention; timestamps normalized to UTC; reprocess prefers the durable original and keeps job->attachment lock order; heartbeat errors no longer burn attempts; confirm timeout enforced; pinned images and sanitized health responses.
This commit is contained in:
@@ -107,6 +107,13 @@ type Attachment struct {
|
||||
FailedAt *time.Time
|
||||
}
|
||||
|
||||
// AdmissionLimits bounds accepted-but-unfinished work. Zero means unlimited.
|
||||
type AdmissionLimits struct {
|
||||
PerUser int
|
||||
Total int
|
||||
Bytes int64
|
||||
}
|
||||
|
||||
// AttachmentDraft is a fully validated attachment awaiting persistence.
|
||||
type AttachmentDraft struct {
|
||||
ID uuid.UUID
|
||||
|
||||
Reference in New Issue
Block a user