Реализовать уровень 4: сквозные трассы, SLO, отказы и отчёт

This commit is contained in:
2026-11-21 12:18:33 +03:00
parent d0a062e2d2
commit 12181fa893
69 changed files with 52258 additions and 47 deletions
+2 -2
View File
@@ -60,8 +60,8 @@ async def run(args) -> None:
# Ready effects are checked in PG by the worker and acked.
await event(db, row, "operator_redeliver")
await db.execute(text("""
INSERT INTO outbox(job_id,attachment_id,attempt,available_at)
SELECT job_id,id,attempt,GREATEST(now(),next_attempt_at)
INSERT INTO outbox(job_id,attachment_id,attempt,available_at,traceparent,tracestate)
SELECT job_id,id,attempt,GREATEST(now(),next_attempt_at),traceparent,tracestate
FROM attachments WHERE id=:id
"""), {"id": row["id"]})
await db.commit()