/** * Get the job status for a given job * * @param Lilmuckers_Queue_Model_Queue_Task $task The task to map data for * * @return array */ protected function _getMappedTaskData(Lilmuckers_Queue_Model_Queue_Task $task) { //get the pheanstalk job $_job = $task->getJob(); try { //get the data on the job $_status = $this->getConnection()->statsJob($_job); } catch (Pheanstalk_Exception_ServerException $e) { //no job found, so return an empty dataset return array(); } return $this->_mapJobStatToTaskInfo($_status); }
/** * Get the job status for a given job * * @param Lilmuckers_Queue_Model_Queue_Task $task The task to map data for * * @return array */ protected function _getMappedTaskData(Lilmuckers_Queue_Model_Queue_Task $task) { //get the pheanstalk job $_job = $task->getJob(); return $this->_mapJobStatToTaskInfo($_job); }