prod msg enq
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user