mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
1688 PO Automation Project
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user