Closed
Description
Symfony version(s) affected
6.1
Description
as per the SQS documentation https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-timers.html
You can only specify up to 15 minutes of delay on a message
I cannot see any handling for this max value in the current code
How to reproduce
send a Messenger message with a DelayStamp that is more than 15 minutes in the future
Possible Solution
in Symfony\Component\Messenger\Bridge\AmazonSqs\Transport\Connection::send()
do a min(900, $delay)
$parameters = [
'QueueUrl' => $this->getQueueUrl(),
'MessageBody' => $body,
'DelaySeconds' => min(900, $delay),
'MessageAttributes' => [],
'MessageSystemAttributes' => [],
];
This would prevent the message send from failing, but, it could potentially line up a lot of messages becoming visible in the queue all at once.
Additional Context
No response