public function end()
    {
        $key = $this->queue->generateListKey();
        $key = "$key:" . $this->id;

        $retry = $this->getRetry();
        $result = $this->queue->getClient()->getRedis()->multi()
            ->del($key)
            ->hset(\date('Y-m-d') . '_pass', (string)\time(), \json_encode([
                'class' => $this->getWorkerClass(),
                'args' => $this->getArgs(),
                'retry' => \gettype($retry) === 'boolean' ? (bool)$retry : (int)($retry - 1),
                'priority' => (float)$this->getPriority(),
                'id' => $this->getId()
            ]))
            ->exec();

        return $result[0];
    }