public function markDone(WorkPackage $task, $log)
    {
        if ($this->logWorkerOutputOnSuccess) {
            $this->updateTaskLog($task, $log);
        }
        $this->updateTaskStatus($task, Task::STATUS_DONE);
        $this->beanstalk->delete($task->getPheanstalkJob());
    }
public function markDone(WorkPackage $task, $log)
    {
        if ($this->logWorkerOutputOnSuccess) {
            $this->updateTaskLog($task, $log);
        }
        $this->updateTaskStatus($task, Task::STATUS_DONE);
        $this->beanstalk->delete($task->getPheanstalkJob());
    }
public function markDone ( WorkPackage $ task , $ log ) { if ( $ this -> logWorkerOutputOnSuccess ) { $ this -> updateTaskLog ( $ task , $ log ) ; } $ this -> updateTaskStatus ( $ task , Task :: STATUS_DONE ) ; $ this -> beanstalk -> delete ( $ task -> getPheanstalkJob ( ) ) ; }
Deletes a task from the queue

@param WorkPackage $task
@param string      $log
@throws TaskQueueServiceException
@return void
Deletes a task from the queue