original_string: public function markDone(WorkPackage $task, $log)
      {
          if ($this->logWorkerOutputOnSuccess) {
              $this->updateTaskLog($task, $log);
          }
          $this->updateTaskStatus($task, Task::STATUS_DONE);
          $this->beanstalk->delete($task->getPheanstalkJob());
      }
code: public function markDone(WorkPackage $task, $log)
      {
          if ($this->logWorkerOutputOnSuccess) {
              $this->updateTaskLog($task, $log);
          }
          $this->updateTaskStatus($task, Task::STATUS_DONE);
          $this->beanstalk->delete($task->getPheanstalkJob());
      }
code_tokens: public function markDone ( WorkPackage $ task , $ log ) { if ( $ this -> logWorkerOutputOnSuccess ) { $ this -> updateTaskLog ( $ task , $ log ) ; } $ this -> updateTaskStatus ( $ task , Task :: STATUS_DONE ) ; $ this -> beanstalk -> delete ( $ task -> getPheanstalkJob ( ) ) ; }
docstring: Deletes a task from the queue
  
  @param WorkPackage $task
  @param string      $log
  @throws TaskQueueServiceException
  @return void
docstring_tokens: Deletes a task from the queue