public function doEpoch($functionName, $workload, $epoch, $unique = null)
    {
        $set = $this->createSet($functionName, $workload, $unique, Task::JOB_EPOCH, $epoch);
        $this->runSet($set);

        return current($set->tasks);
    }
public function doEpoch($functionName, $workload, $epoch, $unique = null)
    {
        $set = $this->createSet($functionName, $workload, $unique, Task::JOB_EPOCH, $epoch);
        $this->runSet($set);

        return current($set->tasks);
    }
public function doEpoch ( $ functionName , $ workload , $ epoch , $ unique = null ) { $ set = $ this -> createSet ( $ functionName , $ workload , $ unique , Task :: JOB_EPOCH , $ epoch ) ; $ this -> runSet ( $ set ) ; return current ( $ set -> tasks ) ; }
Schedule a background task, returning a job handle which can be used
to get the status of the running task.

@param string $functionName
@param string $workload
@param int    $epoch
@param string $unique

@return Task
Schedule a background task returning a job handle which can be used to get the status of the running task .