Questions tagged [symfony-messenger]

Messenger component provides a message bus with the ability to send messages and then handle them immediately in your Symfony application or send them through transports (e.g. queues) to be handled later.

121 questions
3
votes
2 answers

Custom exception from Messenger handler

I try Symfony 4.3.0-dev version to get some new features from Messenger component. My command bus works in sync mode. Before upgrading I could easily throw my custom exception ConflictException from handler. But for 4.3.0-dev I get a…
akor
  • 175
  • 1
  • 3
  • 13
2
votes
1 answer

When I try to send an email, it is not sent, but stored in the messenger_messages table

create a new project Symfony preparing users for enrollment setup symfony console make:user create a registration form symfony console make:registration-form do symfony composer require symfonycasts/verify-email-bundle to send emails upon…
boss.rus
  • 21
  • 5
2
votes
3 answers

Supervisor env var not working with Symfony Messenger

I'm trying to use multiple consumers with the same Redis transport using the Symfony Messenger component. As mentioned in the Symfony guide, we can have problems if we use the same values for stream/group/messenger, cause the same message can be…
GFCoder977
  • 131
  • 1
  • 11
2
votes
1 answer

Symfony Messenger: is it possible to not throw the exception on last retry?

We're using Symfony Messenger, and have these transports: framework: messenger: failure_transport: failed transports: failed: dsn: 'doctrine://default?queue_name=failed' options: …
BenMorel
  • 34,448
  • 50
  • 182
  • 322
2
votes
0 answers

Symfony Messenger Long Running Worker and AMQP Heartbeat

In a messenger handler, if the message takes longer to process than the heartbeat, you won't be able to ack the message due to the connection going away. Is there a way in the handler to manually keep the connection alive? Is publishing a message to…
Architect Nate
  • 674
  • 1
  • 6
  • 21
2
votes
1 answer

Binding exchange to exchange in Symfony messenger component

Is it possible to define binding between exchanges in Symfony messenger component? (4.4 version here). I know that it's possible binding exchange to the queue like here: transports: incoming: dsn:…
Michal S.
  • 450
  • 3
  • 15
2
votes
3 answers

Symfony messenger and mailer : how to add a binding_key?

I have a running Symfony 4.4 project with messenger and rabbitMQ. I have an async transport with 2 queues. transports: # https://symfony.com/doc/current/messenger.html#transport-configuration async: dsn:…
2
votes
1 answer

Executing mail sending via Symfony Messenger

I am in search for a big help with my code. I tried everything in my power to connect some Symfony features, and I think I am going somewhere.. I am using Symfony 4.2 and API Platform and trying to add process that sending of the email message to be…
2
votes
1 answer

Symfony5 messenger, parallel queues for same message handlers

Symfony messenger: https://symfony.com/doc/current/messenger.html Problem: Pool#1 = (user1 creates a Job, Job is splitted to 10 messenger's Message) Pool#2 = (user2 creates a Job, Job is splitted to 10 messenger's Message) ... Pool#100 = (user100…
Oleg Reym
  • 237
  • 4
  • 14
2
votes
1 answer

How to get the number of unprocessed messages in a Redis queue in Symfony

I use Redis transport based on streams. How to get the number of unprocessed messages in a Redis queue in Symfony 4? I can get pending messages with XPENDING^ but how get unprocessed?
soalvi
  • 51
  • 1
  • 4
2
votes
0 answers

symfony messenger No handler for message

I want to be able to handle api calls synchronoulsy and asynchronously easily. So I created an empty interface with according handler and base class interface ApiPayloadInterface { } class ApiPayload implements ApiPayloadInterface { /** @var…
olidem
  • 1,961
  • 2
  • 20
  • 45
2
votes
1 answer

Handling messages from different namespaces in Symfony Messenger with RMQ

I'm building an application with micro services approach. For communication between services I use Symfony Messenger with RMQ transport. Basically everything works fine, but all my services has to be in same namespace. Once I tried to separate them…
Lewiatan
  • 103
  • 9
2
votes
1 answer

Symfony Messenger 4.3 - Consuming messages from doctrine transport fails (exception thrown)

Symfony version: 4.3.2 PHP: 7.2.20 I am trying to use the messenger component with the doctrine transport asynchronously. I have installed the messenger via composer require messenger with the help of Symfony Flex. I have activated the doctrine…
denis
  • 1,393
  • 3
  • 14
  • 34
2
votes
1 answer

Consumer Error Handling in Symfony Messenger / RabbitMQ

I'm using the new Symfony Messenger Component 4.1 and RabbitMQ 3.6.10-1 to queue and asynchronously send email and SMS notifications from my Symfony 4.1 web application. My Messenger configuration (messenger.yaml) looks like this: framework: …
thomaskonrad
  • 665
  • 1
  • 9
  • 24
1
vote
1 answer

Symfony 6 mailer DSN with SMTP doesn't send mails

I'm trying Symfony 6 Mailer with different SMTP servers and none of them is working. The messages are queued but not sent. I tried from different servers to discard a firewall or port issue. There are no log messages or exceptions, so I'm quite…
K. Weber
  • 2,643
  • 5
  • 45
  • 77
1 2
3
8 9