Closed
Description
Symfony version(s) affected
6.4
Description
command messenger:stats
fails with an error when it needs to get data from Beanstalkd transport and the tube is empty
In Connection.php line 187:
Server reported NOT_FOUND
In YamlResponseParser.php line 39:
Server reported NOT_FOUND
How to reproduce
for the new tube:
- setup Beanstalkd
- run
messenger:stats
command
similar for an emptied queue:
- setup Beanstalkd
- dispatch some messages
- process them all
- run
messenger:stats
command
Possible Solution
The command works fine when there are still messages in the queue. Apparently, when the tube (queue in Beanstalkd) is empty, Beanstalkd clears all data about the tube. Connection returns exception (code "Server reported NOT_FOUND") which is just forwarded in
( symfony/beanstalkd-messenger/Transport/Connection.php:185 )
Additional Context
No response