prod msg enq

This commit is contained in:
2026-04-14 21:09:39 +00:00
parent d8b50d753c
commit 50aa3fa05e
3 changed files with 54 additions and 9 deletions
+9 -9
View File
@@ -89,18 +89,18 @@ Queue args for `orders.q`:
## Step 3: Producer (20 min)
- [ ] `producer.py` should publish 5 JSON orders to routing key `order.created`.
- [ ] Each message should include:
- [ ] `order_id`
- [ ] `user_id`
- [ ] `amount`
- [ ] `should_fail` (set true for at least 1 order)
- [ ] `retry_count` (start at 0)
- [ ] Mark messages persistent.
- [x] `producer.py` should publish 5 JSON orders to routing key `order.created`.
- [x] Each message should include:
- [x] `order_id`
- [x] `user_id`
- [x] `amount`
- [x] `should_fail` (set true for at least 1 order)
- [x] `retry_count` (start at 0)
- [x] Mark messages persistent.
Success check:
- [ ] Running `uv run producer.py` prints “Published order …” 5 times.
- [x] Running `uv run producer.py` prints “Published order …” 5 times.
## Step 4: Worker (35 min)