/** * invokes a gearman job for the given mail id * @param string $id * @throws Exception */ private static function invokeGearmanJob($id) { Job::addJob($id, 'processMailJob', array('mailid' => $id)); }