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

        return $obj;
    }