/** * Construct a new majaxPheanstalkWorkerThread * * @param string $path */ public function __construct($path, sfTask $task = null) { $this->setBasePath($path); $this->log('starting'); $this->doConstruct(); if ($task instanceof sfTask) { $this->task = $task; } if ($this->enable_pheanstalk) { $this->pheanstalk = majaxPheanstalk::getInstance(); } }
protected function execute($arguments = array(), $options = array()) { foreach (majaxPheanstalk::getInstance()->listTubes() as $idx => $tube) { $this->logSection(++$idx, $tube); } }
protected function execute($arguments = array(), $options = array()) { foreach (majaxPheanstalk::getInstance()->stats() as $name => $val) { $this->logSection($name, $val); } }