简体   繁体   English

命令“symfony console messenger:failed:show”不起作用

[英]Command “symfony console messenger:failed:show” not working

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

        transports:
            # https://symfony.com/doc/current/messenger.html#transport-configuration
            async: 
                dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
                options:
                    auto_setup: false
                    use_notify: true
                    check_delayed_interval: 60000
                retry_strategy:
                    max_retries: 3
                    multiplier: 2
            failed: 
                dsn: 'doctrine://default?queue_name=failed'
            # sync: 'sync://'

        routing:
            # Route your messages to the transports
            # 'App\Message\YourMessage': async
            App\Message\CommentMessage: async
  • The Messenger daemon is started Messenger 守护程序已启动
  • But when I run the following command I get the error Message below:但是当我运行以下命令时,我收到以下错误消息:
jpmena@jpmena-300E4A-300E5A-300E7A-3430EA-3530EA:~/CONSULTANT/FASTTRACK/DEV/guestbook$ symfony console messenger:failed:show

                                                                      
  There are no commands defined in the "messenger:failed" namespace.  
                                                                      
  Did you mean this?                                                  
      messenger                                                       
                                                                      

  • What is wrong in my configuration?我的配置有什么问题?

I think your forget to remove comment on "failure_transport" line我认为您忘记删除对“failure_transport”行的评论

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM