note 110972 added to amqpqueue.consume

From: Date: Tue, 01 Jan 2013 05:11:44 +0000
Subject: note 110972 added to amqpqueue.consume
Groups: php.notes 
Request: Send a blank email to php-notes+get-192719@lists.php.net to get a copy of this message
I am using consume as per one of the examples ... function processMessage($envelope, $queue) { return FALSE/TRUE; } // Consume messages on queue $queue->consume("processMessage"); I am running the script on commandline: $ php5 process.php but after consuming the initial messages(say there were 5 messages in the queue) when I add more with another script, it wont process them. I have to stop an run the process.php to get the new messages. I thought this function was to consume messages forever unless there is an error in which case the processMessage above returns a FALSE. What could be the reason of this behaviour? Also my queue arguments are: $queue->setArguments(array('durable'=>True,'auto_delete'=>False)); and I ack all the messages I process succesful. Thank you all PHP 5.3 and RabbitMQ 2.8.7 ---- Server IP: 69.147.83.199 Probable Submitter: 41.80.135.182 ---- Manual Page -- http://php.net/manual/en/amqpqueue.consume.php Edit -- https://master.php.net/note/edit/110972 Del: integrated -- https://master.php.net/note/delete/110972/integrated Del: useless -- https://master.php.net/note/delete/110972/useless Del: bad code -- https://master.php.net/note/delete/110972/bad+code Del: spam -- https://master.php.net/note/delete/110972/spam Del: non-english -- https://master.php.net/note/delete/110972/non-english Del: in docs -- https://master.php.net/note/delete/110972/in+docs Del: other reasons-- https://master.php.net/note/delete/110972 Reject -- https://master.php.net/note/reject/110972 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192719) next »