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
+7
View File
@@ -9,6 +9,13 @@ channel = connection.channel()
# this is A DECLARE, basically so can run multuple times
# .x = exchange
# what does durable mean?
# when broke restarts
# even if I don't run this IaC like code to create the q
# the q will exist
# it basically commits the q defns to disk
# not the message
channel.exchange_declare(
exchange="orders.x", exchange_type="direct", durable=True)
# .dlx = dead letter exchange for failed messages