public function send_email_gearman() { $this->profiler = new Profiler(); $messages = $this->validate_email_form(); if (empty($messages)) { $gearman = new Gearman(); $gearman->send_notification_email($this->input->post('email'), 'KO User', 'KO Gearman Email test', $this->input->post('body')); $this->template->messages = array('Message queued'); } else { $this->template->messages = $messages; } }
public static function runSync() { $client = self::getClient('sync'); self::$taskHandlers = $client->runTasks(); }