/** * Set and error and return false * @param string message * @return false * @access private */ public function __errorAndExit($message) { $this->errors[$this->id][] = $message; QueueUtil::writeLog('Error: ' . $message); return false; }
/** * Reschedule a task based on reschedule * @param string uuid * @return boolean success */ private function __reschedule($id = null) { if ($id) { $this->id = $id; } if (!$this->exists()) { return $this->__errorAndExit("QueueTask {$this->id} not found."); } QueueUtil::writeLog('Rescheduling ' . $this->id . ' to '); }