We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e8349 commit 778ef6cCopy full SHA for 778ef6c
php/new_task.php
@@ -13,7 +13,7 @@
13
$data = implode(' ', array_slice($argv, 1));
14
if(empty($data)) $data = "Hello World!";
15
$msg = new AMQPMessage($data,
16
- array('delivery_mode' => 2) # make message persistent
+ array('delivery_mode' => AMQPMessage::DELIVERY_MODE_PERSISTENT)
17
);
18
19
$channel->basic_publish($msg, '', 'task_queue');
0 commit comments