ЛР 5 — асинхронная обработка и версии pipeline

This commit is contained in:
2026-11-16 02:38:13 +03:00
parent 276dbdad8a
commit 1f535f1b5b
163 changed files with 17194 additions and 24 deletions
+26
View File
@@ -0,0 +1,26 @@
package model
import "time"
type AttachmentJob struct {
ID string
AttachmentID string
PipelineVersion int32
AttemptsStarted int32
MaxAttempts int32
LeaseGeneration int32
LeaseUntil time.Time
}
type AttachmentJobState struct {
AttachmentID string
PipelineVersion int32
ID string
Status string
LeaseGeneration int32
AttemptsStarted int32
MaxAttempts int32
LeaseUntil *time.Time
LeaseExpired bool
NextAttemptAt *time.Time
}