setDescription('Stop the scheduler'); return $this; } public function execute(InputInterface $input, OutputInterface $output) { if(!setup::is_installed()) { throw new RuntimeException('Phraseanet is not set up'); } require_once dirname(__FILE__) . '/../../../../lib/bootstrap.php'; $appbox = appbox::get_instance(); $task_manager = new task_manager($appbox); $task_manager->set_sched_status(task_manager::STATUS_SCHED_TOSTOP); return; } }