|
@@ -19,7 +19,7 @@ class StatsConsumerListener
|
|
}
|
|
}
|
|
|
|
|
|
public function run(){
|
|
public function run(){
|
|
- echo 'Running listener111';
|
|
|
|
|
|
+ echo 'Running listener';
|
|
|
|
|
|
$callbackMessage = function($msg) {
|
|
$callbackMessage = function($msg) {
|
|
$msgBody = unserialize($msg->body);
|
|
$msgBody = unserialize($msg->body);
|
|
@@ -49,12 +49,11 @@ class StatsConsumerListener
|
|
$consolePath = getcwd().'/bin/console';
|
|
$consolePath = getcwd().'/bin/console';
|
|
$command = $name . ' ' . implode(' ', $input);
|
|
$command = $name . ' ' . implode(' ', $input);
|
|
$execute = $consolePath.' '.$command;
|
|
$execute = $consolePath.' '.$command;
|
|
- echo $execute;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
$process = new Process($execute);
|
|
$process = new Process($execute);
|
|
- $process->setTimeout(10 * 60);
|
|
|
|
|
|
+ $process->setTimeout(60);
|
|
$process->run();
|
|
$process->run();
|
|
|
|
|
|
$content = $process->getOutput();
|
|
$content = $process->getOutput();
|