public function task() { $config = $this->config->item('base_config'); $host = $config['gearman']['host']; $port = $config['gearman']['port']; $task = new GearmanTask(); var_dump($task->taskDenominator()); var_dump($task->taskNumerator()); }
/** * Callback for getting updated status infromation from a worker * * @param GearmanTask $task **/ public function reverse_status($task) { echo "STATUS: " . $task->jobHandle() . " - " . $task->taskNumerator() . "/" . $task->taskDenominator() . "\n"; }