10000 bug #39839 [Messenger] [AmazonSqs] Fix auto-setup for fifo queue (sta… · symfony/symfony@402a800 · GitHub
[go: up one dir, main page]

Skip to content

Commit 402a800

Browse files
bug #39839 [Messenger] [AmazonSqs] Fix auto-setup for fifo queue (starred-gijs)
This PR was submitted for the 5.x branch but it was merged into the 5.1 branch instead. Discussion ---------- [Messenger] [AmazonSqs] Fix auto-setup for fifo queue | Q | A | ------------- | --- | Branch? | 5.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #39837 | License | MIT When you want the AmazonSqs transport to create the queue on the fly and you have a fifo queue, the parameters are wrong, and a regular queue is created. This PR fixes the parameters. Commits ------- 308f8fe [Messenger][AmazonSqs] Fix auto-setup for fifo queue
2 parents a0ac3b0 + 308f8fe commit 402a800

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ public function setup(): void
25 6F50 8258
$parameters = ['QueueName' => $this->configuration['queue_name']];
259259

260260
if (self::isFifoQueue($this->configuration['queue_name'])) {
261-
$parameters['FifoQueue'] = true;
261+
$parameters['Attributes'] = [
262+
'FifoQueue' => 'true',
263+
];
262264
}
263265

264266
$this->client->createQueue($parameters);

0 commit comments

Comments
 (0)
0