Renamed app config worker section to queue + removed max_jobs option (use supervisord)

This commit is contained in:
Dmitry Khomutov 2017-01-23 22:41:02 +07:00
commit 0ca5c8de51
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
5 changed files with 15 additions and 46 deletions

View file

@ -244,8 +244,8 @@ class InstallCommand extends Command
$config['language'] = 'en';
$config['per_page'] = 10;
$config['url'] = $url;
$config['worker'] = $this->getQueueInformation($input, $output, $helper);
$config['url'] = $url;
$config['queue'] = $this->getQueueInformation($input, $output, $helper);
return $config;
}
@ -278,9 +278,9 @@ class InstallCommand extends Command
$rtn['host'] = $helper->ask($input, $output, $questionQueue);
}
if (!$rtn['queue'] = $input->getOption('queue-name')) {
if (!$rtn['name'] = $input->getOption('queue-name')) {
$questionName = new Question('Enter the queue (tube) name to use [php-censor-queue]: ', 'php-censor-queue');
$rtn['queue'] = $helper->ask($input, $output, $questionName);
$rtn['name'] = $helper->ask($input, $output, $questionName);
}
return $rtn;