Merge branch 'dillon/34.7-jenkins-vapor' into vapor/development

This commit is contained in:
Dillon Ngo
2024-09-19 06:38:38 +08:00
2 changed files with 14 additions and 6 deletions
@@ -47,6 +47,14 @@ class UpdatePerfexCRMPrelude implements ShouldQueue
public function handle()
{
Log::info('packingList: ' . json_encode($this->packingList));
Log::info('packingList owner: ' . json_encode($this->packingList->owner));
Log::info('transaction: ' . json_encode($this->transaction));
Log::info('updatePerfexCRMObject: ' . json_encode($this->updatePerfexCRMObject));
Log::info('shouldCreateInvoice: ' . json_encode($this->shouldCreateInvoice));
return;
if(is_null($this->packingList)){
$this->packingList = $this->transaction->owner->owner;
}
@@ -47,14 +47,14 @@ class ProcessDelayedJobsV2Command extends Command
$params['shouldCreateInvoice']
);
Log::info('packingList : ' . $params['packingList']);
Log::info('transaction : ' . $params['transaction']);
Log::info('updatePerfexCRMObject : ' . $params['updatePerfexCRMObject']);
Log::info('shouldCreateInvoice : ' . $params['shouldCreateInvoice']);
Log::info('ProcessDelayedJobsV2Command packingList : ' . $params['packingList']);
Log::info('ProcessDelayedJobsV2Command transaction : ' . $params['transaction']);
Log::info('ProcessDelayedJobsV2Command updatePerfexCRMObject : ' . $params['updatePerfexCRMObject']);
Log::info('ProcessDelayedJobsV2Command shouldCreateInvoice : ' . $params['shouldCreateInvoice']);
// dispatch($singleDelayedJob)->delay(now()->addSeconds($index * 30));
dispatch($singleDelayedJob)->delay(now()->addSeconds($index * 30));
// $delayedJob->delete();
}
Log::info('Total delayed jobs processed and dispatched: ' . $count);
Log::info('ProcessDelayedJobsV2Command Total delayed jobs processed and dispatched: ' . $count);
}
}