lab5: очереди и асинхронная обработка изображений

Durable staging handoff, transactional outbox, at-least-once worker with lease fencing, idempotent versioned pipeline, three variants, operator tooling, contract tests and evidence. Includes the review fixes: reprocess source selection and failure settlement, replay guards, stale-job retirement, PNG structural/raster validation, migration rollback safety and audit events.
This commit is contained in:
Vladislav Kunetskiy
2026-10-31 14:34:24 +03:00
parent 6c5ba026f1
commit 01b885e846
99 changed files with 10164 additions and 1452 deletions
+2 -1
View File
@@ -30,7 +30,7 @@ def main():
response = client.call(
'POST',
'/api/v1/chats/' + chat['id'] + '/attachments?filename=' + quote('failover.png'),
201,
202,
actor=alice,
raw=content,
headers={'Content-Type': 'image/png'},
@@ -40,6 +40,7 @@ def main():
instance = response['headers'].get('X-Instance-Id')
check(bool(instance), 'upload response has no X-Instance-Id')
check(attachment['sha256'] == hashlib.sha256(content).hexdigest(), 'upload checksum mismatch')
attachment = client.wait_ready(alice, attachment)
stop = subprocess.run(
[str(ROOT / 'scripts/stop-one.sh')],