We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81bb7d3 + 8497c5f commit b958631Copy full SHA for b958631
python/new_task.py
@@ -15,7 +15,7 @@
15
routing_key='task_queue',
16
body=message,
17
properties=pika.BasicProperties(
18
- delivery_mode=pika.spec.PERSISTENT_DELIVERY_MODE,
+ delivery_mode=pika.DeliveryMode.Persistent,
19
))
20
print(f" [x] Sent {message}")
21
connection.close()
0 commit comments