From de34a98856a15a7ec7f450bec380e495ef399e50 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Thu, 15 Jan 2026 03:20:29 +0800 Subject: [PATCH] 1688 PO Automation Project --- .../V2/ETLPurchaseOrderTransactionV2CommandJob.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Classes/Jobs/Commands/V2/ETLPurchaseOrderTransactionV2CommandJob.php b/app/Classes/Jobs/Commands/V2/ETLPurchaseOrderTransactionV2CommandJob.php index d5d16029..ca9cbba1 100644 --- a/app/Classes/Jobs/Commands/V2/ETLPurchaseOrderTransactionV2CommandJob.php +++ b/app/Classes/Jobs/Commands/V2/ETLPurchaseOrderTransactionV2CommandJob.php @@ -78,6 +78,14 @@ class ETLPurchaseOrderTransactionV2CommandJob implements ShouldQueue (App()->make(ETLPDFPurchaseOrderClaudeProcessor::class))->execute($this->files, $this->bookingId, $this->batchIndex !== 1, $this->isLast); $finished = Cache::increment('etl_finished_jobs_' . $this->groupId); + + Log::info('ETL job finished for group ' . $this->groupId, [ + 'batch_index' => $this->batchIndex, + 'total_batches' => $this->totalBatches, + 'finished_counter' => $finished, + 'timestamp' => now(), + ]); + if ($finished >= $this->totalBatches) { Log::info('All ETL jobs finished for group ' . $this->groupId . '. Last job finished at ' . now()); event(new ETLPurchaseOrderTransactionCompleteEvent(true, $this->bookingId));