fix: jobs schema payload, publisher confirms, worker reconnect, retry with backoff, replay endpoint

This commit is contained in:
2026-11-27 13:40:30 +03:00
parent 8760ec186a
commit 8c141c2866
6 changed files with 238 additions and 31 deletions
+4
View File
@@ -69,6 +69,7 @@ class Attachment(Base):
error_code: Mapped[str] = mapped_column(String(50), nullable=True)
s3_key: Mapped[str] = mapped_column(String(500), nullable=False)
variants: Mapped[list] = mapped_column(JSONB, default=list, nullable=False)
attempts: Mapped[int] = mapped_column(Integer, default=0, nullable=False)
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=_now, nullable=False)
updated_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=_now, onupdate=_now, nullable=False)
@@ -82,4 +83,7 @@ class Outbox(Base):
id: Mapped[UUID] = mapped_column(PG_UUID(as_uuid=True), primary_key=True, default=uuid4)
payload: Mapped[str] = mapped_column(Text, nullable=False)
status: Mapped[str] = mapped_column(String(20), default="pending", nullable=False, index=True)
scheduled_at: Mapped[datetime] = mapped_column(
DateTime(timezone=True), default=_now, nullable=False, index=True
)
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=_now, nullable=False)