setDescription('Stop the scheduler'); return $this; } public function requireSetup() { return true; } protected function doExecute(InputInterface $input, OutputInterface $output) { try { $appbox = appbox::get_instance(\bootstrap::getCore()); $task_manager = new task_manager($appbox); $task_manager->setSchedulerState(task_manager::STATE_TOSTOP); return 0; } catch (\Exception $e) { return 1; } return 0; } }