8000 bug #53441 [Messenger] Amazon SQS Delay has a max of 15 minutes (alam… · symfony/symfony@22dc6a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 22dc6a7

Browse files
committed
bug #53441 [Messenger] Amazon SQS Delay has a max of 15 minutes (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- [Messenger] Amazon SQS Delay has a max of 15 minutes | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix #48279 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT Created PR as suggested in issue Commits ------- 086831e [Messenger] Amazon SQS Delay has a max of 15 minutes
2 parents 7cb70ae + 086831e commit 22dc6a7

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport

1 file changed

+2
-1
lines changed

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ public function send(string $body, array $headers, int $delay = 0, string $messa
322322
$parameters = [
323323
'QueueUrl' => $this->getQueueUrl(),
324324
'MessageBody' => $body,
325-
'DelaySeconds' => $delay,
325+
// Maximum delay is 15 minutes. See https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-timers.html.
326+
'DelaySeconds' => min(900, $delay),
326327
'MessageAttributes' => [],
327328
'MessageSystemAttributes' => [],
328329
];

0 commit comments

Comments
 (0)
0