Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set FIFO topic and queue names for SNS and SQS. #1365

Closed
eortiz-tracktik opened this issue Nov 29, 2024 · 1 comment
Closed

Can't set FIFO topic and queue names for SNS and SQS. #1365

eortiz-tracktik opened this issue Nov 29, 2024 · 1 comment

Comments

@eortiz-tracktik
Copy link
Contributor

The currents implementations for methods:

  • \Enqueue\Client\Driver\SqsDriver::createTransportRouterTopicName()
  • \Enqueue\Client\Driver\SqsDriver::createTransportQueueName()
  • \Enqueue\Client\Driver\SnsQsDriver::createTransportRouterTopicName()
  • \Enqueue\Client\Driver\SnsQsDriver::createTransportQueueName()
    is using return str_replace('.', '_dot_', $name); what make it impossible to use a topic or a queue name that ends on .fifo

The suggestion would be to replace it by something like return preg_replace('/\.(?!fifo$)/', '_dot_', $name); so it keeps replacing all other . by _dot_ except the final .fifo.

@eortiz-tracktik
Copy link
Contributor Author

I should be using ./bin/console enqueue:transport:consume instead of ./bin/console enqueue:consume so the transport processor is used directly instead of the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant