/** * Execute all crawlers or a specific crawler on a river * or a specific crawler if name is provided. * * @param int river_id * @param string channel name * @return void */ public static function run($river_id, $channel) { Kohana::$log->add(Log::INFO, "Crawl requested for river with id :id and channel :channel", array(':id' => $river_id, ':channel' => $channel)); Kohana::$log->write(); $ret = call_user_func(self::$_crawlers[$channel], $river_id); // Update the schedule for the channel Model_Channel_Filter::update_runs($river_id, $channel, $ret); }