/** * Schedules task * * @param string $name Package name * @param array $payload Payload for task * @param int $delay Delay in seconds * @return string Created Schedule id * @throws CException */ public function workerPostScheduleSimple($name, $payload = array(), $delay = 1) { try { return $this->_worker->postScheduleSimple($name, $payload, $delay); } catch (Exception $e) { Yii::log('Error in IronWorker: ' . $e->getMessage(), 'error', 'ext.yiiron'); throw new CException($e->getMessage()); } }