فهرست منبع

[智价云] 队列清洗超时配置更新

tangyuanwang 1 روز پیش
والد
کامیت
f9f521701a

+ 4 - 0
app/Jobs/Manager/Process/LowPriceGoodsDataJobs.php

@@ -30,6 +30,10 @@ use Illuminate\Support\Carbon;
 class LowPriceGoodsDataJobs implements ShouldQueue
 {
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
+    
+    public $tries = 3; // 限制重试次数
+    public $timeout = 300; // 5分钟超时
+
     protected $message_data;
     /**
      * Create a new job instance.

+ 4 - 0
app/Jobs/Manager/Process/ViolationCompanyDataJobs.php

@@ -30,6 +30,10 @@ use Illuminate\Support\Carbon;
 class ViolationCompanyDataJobs implements ShouldQueue
 {
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
+    
+    public $tries = 3; // 限制重试次数
+    public $timeout = 300; // 5分钟超时
+
     protected $message_data;
     /**
      * Create a new job instance.

+ 4 - 0
app/Jobs/Manager/Process/ViolationProductDataJobs.php

@@ -30,6 +30,10 @@ use Illuminate\Support\Carbon;
 class ViolationProductDataJobs implements ShouldQueue
 {
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
+        
+    public $tries = 3; // 限制重试次数
+    public $timeout = 300; // 5分钟超时
+
     protected $message_data;
     /**
      * Create a new job instance.

+ 4 - 0
app/Jobs/Manager/Process/ViolationStoreDataJobs.php

@@ -29,6 +29,10 @@ use Illuminate\Support\Carbon;
 class ViolationStoreDataJobs implements ShouldQueue
 {
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
+        
+    public $tries = 3; // 限制重试次数
+    public $timeout = 300; // 5分钟超时
+
     protected $message_data;
     /**
      * Create a new job instance.