Files
mtusi2026lab2/evidence/sqlalchemy-2026-11-06/grade3/pipeline-ack.txt
T

40 lines
7.2 KiB
Plaintext

date: 2026-11-06T06:25:31Z commit: 24a51744f521aa585e50a931d0a0219d2e960197
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
$ python3 scripts/pipeline_evidence.py
date: 2026-11-06T06:25:31Z
$ docker compose stop -t 10 worker -> 0.4 s, exit code 0
mtusi2026lab5-worker-1 bc3835aefea9 exited Exited (0) Less than a second ago
upload -> 202 status=queued id=01a1af88-ac91-717f-ad15-3a272f85e5b6
GET content?variant=original while worker is stopped -> 409
GET content?variant=thumbnail while worker is stopped -> 409
$ rabbitmqctl list_queues -p messenger name messages_ready messages_unacknowledged
name messages_ready messages_unacknowledged
attachments.process 1 0
attachments.process.dlq 2 0
$ rabbitmqadmin get messages -q attachments.process -a ack_requeue_true
+---------------+-------------+-------------+-----------------------+---------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+
| payload_bytes | redelivered | exchange | routing_key | message_count | properties | payload | payload_encoding |
+---------------+-------------+-------------+-----------------------+---------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+
| 243 | false | attachments | attachment.process.v1 | 0 | app_id: "faststream-0.7.8" | {"type": "attachment.process.v1", "job_id": "01a1af88-ac9e-71df-935d-5bd2cd73f5e5", "attempt": 1, "created_at": "2026-11-06T06:25:32.318777Z", "attachment_id": "01a1af88-ac91-717f-ad15-3a272f85e5b6", "schema_version": 1, "pipeline_version": 1} | string |
| | | | | | content_type: "application/json" | | |
| | | | | | correlation_id: "2e218fde-d3f6-4e1c-b99a-eed45cc481b9" | | |
| | | | | | delivery_mode: 2 | | |
| | | | | | headers: {} | | |
| | | | | | message_id: "01a1af88-ac9e-71df-935d-5bd2cd73f5e5" | | |
| | | | | | priority: 0 | | |
| | | | | | timestamp: 1793946333 | | |
| | | | | | type: "attachment.process.v1" | | |
| | | | | | | | |
+---------------+-------------+-------------+-----------------------+---------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+
payload keys: ['attachment_id', 'attempt', 'created_at', 'job_id', 'pipeline_version', 'schema_version', 'type']
$ docker compose stop -t 10 relay -> 0.3 s, exit code 0
mtusi2026lab5-relay-1 7e6a2b3d2f0b exited Exited (0) Less than a second ago
$ docker compose up -d --no-deps --wait relay -> healthy
$ docker compose up -d --no-deps --wait worker -> healthy
after worker start -> status=ready variants=[('crop', 128, 128), ('optimized', 320, 200), ('thumbnail', 256, 160)]
name messages_ready messages_unacknowledged
attachments.process 0 0
attachments.process.dlq 2 0
PASS: pipeline stand evidence
exit_code: 0 elapsed_seconds: 16.348