/**
  * Configure command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('restore_failed_jobs')->addOption('by-ids', 'i', InputOption::VALUE_REQUIRED, 'Restore by ID-s from failed log')->addOption('by-type', 't', InputOption::VALUE_REQUIRED, 'Restore by type')->addOption('update-data', 'u', InputOption::VALUE_OPTIONAL, 'Update data with these attributes (JSON)')->setDescription('Restore failed jobs by ID-s or by type');
 }
 /**
  * Configure command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('create_tables')->setDescription('Create tables that are needed for MySQL queue to work');
 }
Exemple #3
0
 /**
  * Configure command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('enqueue')->addArgument('type', InputArgument::REQUIRED, 'Full job type class name (including namespace)')->addOption('data', 'd', InputOption::VALUE_REQUIRED, 'JSON encoded job data', '{}')->setDescription('Add a new job to the queue');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('failed_job_reasons')->addArgument('type', InputArgument::REQUIRED, 'Name of the job type, or part that matches only one job')->setDescription('List distinct reasons why a particular job type failed');
 }
 /**
  * Configure command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('clear_failed_jobs')->setDescription('Clear all failed jobs');
 }
 /**
  * Configure command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('run_queue_maintenance')->setDescription('Execute queue maintenance tasks');
 }
Exemple #7
0
 /**
  * Configure command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jobs_queue')->setDescription('List all jobs queues grouped by type');
 }
Exemple #8
0
 /**
  * Configure command.
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('run_jobs')->addOption('seconds', 's', InputOption::VALUE_REQUIRED, 'Run jobs for -s seconds before quitting the process', 50)->addOption('channels', 'c', InputOption::VALUE_REQUIRED, 'Select one or more channels for jobs for process', QueueInterface::MAIN_CHANNEL)->setDescription('Run jobs that are next in line for up to N seconds');
 }
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('failed_jobs')->setDescription('List failed jobs grouped by type and date');
 }