fix(worker): lab5 enforce pipeline version check on claim
This commit is contained in:
@@ -59,7 +59,7 @@ type OutboxRepository interface {
|
||||
}
|
||||
|
||||
type AttachmentJobRepository interface {
|
||||
ClaimForProcessing(ctx context.Context, id string, lease time.Duration) (*Attachment, error)
|
||||
ClaimForProcessing(ctx context.Context, id string, version int, lease time.Duration) (*Attachment, error)
|
||||
CompleteJob(ctx context.Context, id string, pipelineVersion int, variants []AttachmentVariant) (bool, error)
|
||||
FailJob(ctx context.Context, id string, errorCode string) error
|
||||
ScheduleRetry(ctx context.Context, id string, nextAttemptAt time.Time, errorCode string) error
|
||||
|
||||
Reference in New Issue
Block a user