tableName = $tableName; $this->recordId = $recordId; $this->onQueue('save-trigger'); } public function handle(): void { Log::info("=== ExecuteWeldlogSyncJob STARTED ===", [ 'table_name' => $this->tableName, 'record_id' => $this->recordId, ]); try { // Kayıt verisini kuyruk içinde çek (response'u yavaşlatmaz) $recordData = db($this->tableName)->where('id', $this->recordId)->first(); if (!$recordData) { Log::warning("ExecuteWeldlogSyncJob: Record not found", [ 'table_name' => $this->tableName, 'record_id' => $this->recordId, ]); return; } $data = (array) $recordData; if (function_exists('logToWeldlogUpdate')) { logToWeldlogUpdate($data); } if (function_exists('logToWPQUpdate')) { logToWPQUpdate($data, $this->tableName); } } catch (\Throwable $th) { Log::error("ExecuteWeldlogSyncJob failed", [ 'table_name' => $this->tableName, 'record_id' => $this->recordId, 'error' => $th->getMessage(), ]); throw $th; } Log::info("=== ExecuteWeldlogSyncJob COMPLETED ===", [ 'table_name' => $this->tableName, 'record_id' => $this->recordId, ]); } public function tags(): array { return [ "WeldlogSync:{$this->tableName}", "RecordId:{$this->recordId}", ]; } }