Jelajahi Sumber

采集队列失败重试10此

15313670163 4 bulan lalu
induk
melakukan
f2a73940de
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      app/Job/GatherExampleJob.php
  2. 1 1
      app/Job/ImportExampleJob.php

+ 1 - 1
app/Job/GatherExampleJob.php

@@ -16,7 +16,7 @@ class GatherExampleJob extends Job
     /**
     /**
      * 任务执行失败后的重试次数,即最大执行次数为 $maxAttempts+1 次
      * 任务执行失败后的重试次数,即最大执行次数为 $maxAttempts+1 次
      */
      */
-    protected int $maxAttempts = 2;
+    protected int $maxAttempts = 10;
 
 
     public function __construct($params)
     public function __construct($params)
     {
     {

+ 1 - 1
app/Job/ImportExampleJob.php

@@ -12,7 +12,7 @@ class ImportExampleJob extends Job
     /**
     /**
      * 任务执行失败后的重试次数,即最大执行次数为 $maxAttempts+1 次
      * 任务执行失败后的重试次数,即最大执行次数为 $maxAttempts+1 次
      */
      */
-    protected int $maxAttempts = 3;
+    protected int $maxAttempts = 10;
 
 
     public function __construct($params)
     public function __construct($params)
     {
     {