|
|
@@ -14,7 +14,12 @@ use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
class LogisticYTOSync implements ShouldQueue
|
|
|
{
|
|
|
+ public $tries = 2;
|
|
|
+
|
|
|
+ public $timeout = 10;
|
|
|
+
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
+
|
|
|
/**
|
|
|
* @var $logisticYTOService LogisticYTOService
|
|
|
* @var $orderPackageReceivedSyncService OrderPackageReceivedSyncService
|
|
|
@@ -43,7 +48,6 @@ class LogisticYTOSync implements ShouldQueue
|
|
|
*/
|
|
|
public function handle()
|
|
|
{
|
|
|
- ini_set('max_execution_time', 60);
|
|
|
LogService::log(LogisticYTOSync::class, "{$this->logistic_number}-JOB-YTO", '');
|
|
|
$this->logisticYTOService = app('LogisticYTOService');
|
|
|
$nativeResponse = $this->logisticYTOService->query($this->logistic_number);
|