public function updateQueueState(int $state)
    {
        if ($this->isQueueable()) {
            $this->getInstance()
                ->getConnection()
                ->table($this->getInstance()->getTable())
                ->where($this->getInstance()->getQualifiedKeyName(), $this->getInstance()->getKey())
                ->update([
                    "{$this->name}_queue_state" => $state,
                ]);
        }
    }