protected function configure() { parent::configure(); $this->addOption('batch-size', null, InputOption::VALUE_REQUIRED, 'Number of messages to fetch at once', 20)->addOption('reverse', null, InputOption::VALUE_NONE, 'Fetch jobs from the database in reverse order (newest first)'); }
protected function configure() { parent::configure(); $this->addOption('queue', null, InputOption::VALUE_REQUIRED, 'The queue to watch, can be a comma separated list'); }
public function __construct($name, array $options, QueueManager $queueManager) { parent::__construct($name, $options, $queueManager); $this->options = $options; }
protected function configure() { parent::configure(); $this->addOption('url', null, InputOption::VALUE_REQUIRED, 'The url of SQS queue to run, can be a comma separated list')->addOption('queue', null, InputOption::VALUE_REQUIRED, 'The name of a queue in the config, can be a comma separated list')->addOption('timeout', null, InputOption::VALUE_REQUIRED, 'The visibility timeout for SQS')->addOption('batch-size', null, InputOption::VALUE_REQUIRED, 'Number of messages to fetch at once', 10); }