public function reset($attributes)
    {
        foreach ($this->failed as $idx => $job) {
            if ($job['id'] == $attributes['id']) {
                unset($this->failed[$idx]);
                break;
            }
        }

        foreach ($this->locked as $idx => $job) {
            if ($job['id'] == $attributes['id']) {
                unset($this->locked[$idx]);
                break;
            }
        }

        $attributes['status'] = 'free';
        array_unshift($this->queue, $attributes);
    }