Closed
Description
Symfony version(s) affected
5.3 onwards
Description
Hi,
There appears to be a bug in PostgreSqlConnection meaning that newly available messages are not picked immediately.
This is due to this line:
I really don't understand what that line is doing apart from being something to do with delayed message, but apart from that don't understand it.
How to reproduce
- start your consume:
bin/console messenger:consume async -vvv
- queue some job via any means you like
- this message will be consumed immediately
- queue another message via any means you like
- this message and all other new ones will not be picked up for 60 seconds after the message in 2. was consumed.
Simply: after the queue is emptied, new messages will not be picked up for 60 seconds because of check_delayed_interval' => 60000
Possible Solution
Unsure, no idea what
Additional Context
Found a related discussion #36990