lab5: асинхронная очередь, worker и идемпотентный pipeline
API принимает 202 после durable staging и TX intent (job+outbox); отдельные relay и worker публикуют/обрабатывают задания с publisher confirm, lease, retry/backoff, DLQ и replay. Добавлены версии pipeline, варианты thumbnail/crop/optimized, presign в verified staging, status-aware sweeper и admission control.
This commit is contained in:
@@ -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')],
|
||||
|
||||
Reference in New Issue
Block a user