pid = $pid; } /** * Get the unique ID for the job. */ public function uniqueId(): string { return 'notifications:profile_warm_cache:'.$this->pid; } /** * Execute the job. */ public function handle(): void { try { NotificationService::warmCache($this->pid, 100, true); } catch (\Exception $e) { Log::error('Failed to warm notification cache', [ 'profile_id' => $this->pid, 'exception' => get_class($e), 'message' => $e->getMessage(), 'attempt' => $this->attempts(), ]); throw $e; } } }