onQueue($queue); } } public function backoff(): array { return [2, 10, 30]; } public function handle(VectorService $vectors): void { if (! $vectors->isConfigured()) { return; } $artwork = Artwork::query() ->with(['categories' => fn ($categories) => $categories->with('contentType')->orderBy('sort_order')->orderBy('name')]) ->find($this->artworkId); if (! $artwork) { return; } try { $vectors->upsertArtwork($artwork); } catch (\Throwable $e) { Log::warning('SyncArtworkVectorIndexJob failed', [ 'artwork_id' => $this->artworkId, 'error' => $e->getMessage(), ]); throw $e; } } }