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
-------
308f8fede0
[Messenger][AmazonSqs] Fix auto-setup for fifo queue
This commit is contained in:
commit
402a800971
@ -258,7 +258,9 @@ class Connection
|
||||
$parameters = ['QueueName' => $this->configuration['queue_name']];
|
||||
|
||||
if (self::isFifoQueue($this->configuration['queue_name'])) {
|
||||
$parameters['FifoQueue'] = true;
|
||||
$parameters['Attributes'] = [
|
||||
'FifoQueue' => 'true',
|
||||
];
|
||||
}
|
||||
|
||||
$this->client->createQueue($parameters);
|
||||
|
Reference in New Issue
Block a user