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:
@@ -75,13 +75,15 @@ class ETLPurchaseOrderTransactionV2CommandJob implements ShouldQueue
|
||||
'file_count' => count($this->files),
|
||||
]);
|
||||
|
||||
(App()->make(ETLPDFPurchaseOrderClaudeProcessor::class))->execute($this->files, $this->bookingId, $this->batchIndex !== 1);
|
||||
|
||||
$cacheKey = 'etl_finished_jobs_' . $this->groupId;
|
||||
$lockKey = $cacheKey . '_lock';
|
||||
$finished = 0;
|
||||
|
||||
Cache::lock($lockKey, 10)->block(5, function () use ($cacheKey, &$finished) {
|
||||
|
||||
(App()->make(ETLPDFPurchaseOrderClaudeProcessor::class))->execute($this->files, $this->bookingId, $this->batchIndex !== 1);
|
||||
|
||||
// Get current counter (default 0)
|
||||
$current = Cache::get($cacheKey, 0);
|
||||
$finished = (int)$current + 1;
|
||||
|
||||
Reference in New Issue
Block a user