/** * Execute the console command. * * @return void */ public function fire() { $delay = $this->input->getOption('delay'); // The memory limit is the amount of memory we will allow the script to occupy // before killing it and letting a process manager restart it for us, which // is to protect us against any memory leaks that will be in the scripts. $memory = $this->input->getOption('memory'); $connection = $this->input->getArgument('connection'); $this->listener->listen($connection, $this->getQueue(), $delay, $memory); }
/** * Execute the console command. * * @return void */ public function fire() { $this->setListenerOptions(); $delay = $this->input->getOption('delay'); // The memory limit is the amount of memory we will allow the script to occupy // before killing it and letting a process manager restart it for us, which // is to protect us against any memory leaks that will be in the scripts. $memory = $this->input->getOption('memory'); $connection = $this->input->getArgument('connection'); $timeout = $this->input->getOption('timeout'); // We need to get the right queue for the connection which is set in the queue // configuration file for the application. We will pull it based on the set // connection being run for the queue operation currently being executed. $queue = $this->getQueue($connection); $this->listener->listen($connection, $queue, $delay, $memory, $timeout); }