feat(worker): lab5 add retries, DLQ registry and manual replay endpoint
This commit is contained in:
@@ -45,6 +45,7 @@ type AttachmentRepository interface {
|
||||
ExistingKeys(ctx context.Context, keys []string) ([]string, error)
|
||||
DeletePending(ctx context.Context, id string) error
|
||||
CreateInTx(ctx context.Context, tx Tx, a *Attachment) error
|
||||
ResetForReplay(ctx context.Context, tx Tx, id string) error
|
||||
}
|
||||
|
||||
type OutboxRepository interface {
|
||||
@@ -69,4 +70,5 @@ type AttachmentVariantRepository interface {
|
||||
type FailedJobRepository interface {
|
||||
Record(ctx context.Context, f *FailedJob) error
|
||||
Resolve(ctx context.Context, attachmentID string, resolution string) error
|
||||
ResolveInTx(ctx context.Context, tx Tx, id string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user