浏览代码

Merge branch 'master' of ssh://200.50.168.30:222/VendorSoftwareFlowdat3/WorkflowBundle

Luciano Andrade 7 年之前
父节点
当前提交
360f6a217c
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      Resources/config/rabbit_mq/config.yml
  2. 1 0
      Services/CommandConsumer.php

+ 1 - 1
Resources/config/rabbit_mq/config.yml

@@ -40,7 +40,7 @@ old_sound_rabbit_mq:
         command_consumer:
             connection:       default
             exchange_options: {name: 'command', type: topic}
-            queue_options:    {name: 'command', routing_keys : ["%env(AMQP_KEY)%"]}
+            queue_options:    {name: "command.%env(AMQP_KEY)%", routing_keys : ["%env(AMQP_KEY)%"]}
             callback:         command_consumer_service # sf service id
             
         log_consumer:

+ 1 - 0
Services/CommandConsumer.php

@@ -55,6 +55,7 @@ class CommandConsumer implements ConsumerInterface
             $consolePath = $this->serviceContainer->get('kernel')->getRootDir() . '/../bin/console';
             $command = $name . ' ' . implode(' ', $input);
             $process = new Process("{$consolePath} {$command}");
+            $process->setTimeout(0);
             $process->run();
             $content = $process->getOutput();
             echo $content;