concrete/src/Job/QueueableJob.php
public function markCompleted($code = 0, $message = false)
    {
        $obj = parent::markCompleted($code, $message);
        $queue = $this->getQueueObject();
        if (!$this->didFail()) {
            $queue->deleteQueue();
        }

        return $obj;
    }
public function markCompleted($code = 0, $message = false)
    {
        $obj = parent::markCompleted($code, $message);
        $queue = $this->getQueueObject();
        if (!$this->didFail()) {
            $queue->deleteQueue();
        }

        return $obj;
    }
public function markCompleted ( $ code = 0 , $ message = false ) { $ obj = parent :: markCompleted ( $ code , $ message ) ; $ queue = $ this -> getQueueObject ( ) ; if ( ! $ this -> didFail ( ) ) { $ queue -> deleteQueue ( ) ; } return $ obj ; }
Mark the queue as having completed

@param int $code 0 for success, otherwise the exception error code
@param bool $message The message to show
@return \Concrete\Core\Job\JobResult
Mark the queue as having completed