I am using the Symfony Messenger on Symfony 4.4 with RabbitMQ.
Everything seems to work fine. I have own Serializer, own Handler. I can consume messages etc...
The problem is that after consuming message, I can see message on the queue list. I am expecting that consumed message will be removed from Ready/Total..
Ready: 1Total: 1
If I add next message, the new one will be consumed with success, but "Ready" and "Total" value will increase to 2...
I can not found any return success flag or something like this to remove correct message from the queue.
// Quit the worker with CONTROL-C. 11:45:02 INFO [messenger] Received message App\Messenger\Message ["message" => App\Messenger\Message^ { …},"class" => "App\Messenger\Message"]test11:45:02 INFO [messenger] Message App\Messenger\Message handled by App\Messenger\Consumer\MyOwnHandler::__invoke ["message" => App\Messenger\Message^ { …},"class" => "App\Messenger\Message","handler" => "App\Messenger\Consumer\MyOwnHandler::__invoke"]11:45:02 INFO [messenger] App\Messenger\Message was handled successfully (acknowledging to transport). ["message" => App\Messenger\Message^ { …},"class" => "App\Messenger\Message"]
And simple handler __invoke method
public function __invoke(Message $message){ $message = unserialize($message->getBody()); print_r($message);}