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

        $attributes['status'] = 'failed';
        $this->failed[] = $attributes;
    }