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

The "failed" receiver does not support listing or showing specific messages #110

Open
Hubbitus opened this issue Dec 22, 2021 · 0 comments

Comments

@Hubbitus
Copy link

Hello.

I've setup failed transport as local filesystem write:
config/packages/messenger.yaml:

framework:
    messenger:
        # Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
        failure_transport: failed

        transports:
            async_kafka:
               ...
            failed:
                dsn: 'enqueue://enqueue_file?topic[name]=fails'

        routing:
            # Route your messages to the transports
            'App\DAO\DemoNotification': [ async_kafka ]

config/packages/enqueue.yaml:

enqueue:
    enqueue_file:
        transport:
            dsn: 'file://'
            path: '%kernel.project_dir%/var/queue/kafka.mirror'

Together with configuring custom middleware by symfony/symfony#35521 I be able to send messages into failed queues when Kafka is not available.

Meantime I can't read that:

bin/console messenger:failed:show
[critical] Error thrown while running command "messenger:failed:show". Message: "The "failed" receiver does not support listing or showing specific messages."

Looks like just should be implemented MessageCountAwareInterface, ListableReceiverInterface?

Similar to the said alekitto/messenger-extra#13

P.S. Initially reported into enqueue: php-enqueue/enqueue-dev#1226

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