作者 lyh

变更数据

@@ -56,7 +56,7 @@ class GeoQuestionRes extends Command @@ -56,7 +56,7 @@ class GeoQuestionRes extends Command
56 $this->output("任务 $task_id 已被其他进程锁定,跳过"); 56 $this->output("任务 $task_id 已被其他进程锁定,跳过");
57 continue; 57 continue;
58 } 58 }
59 - Redis::expire($lock_key, 3600); // 1小时自动解锁 59 + Redis::expire($lock_key, 1200); // 1小时自动解锁
60 $this->output('执行的任务ID:' . $task_id); 60 $this->output('执行的任务ID:' . $task_id);
61 $geoQuestionModel = new GeoQuestion(); 61 $geoQuestionModel = new GeoQuestion();
62 $taskInfo = $geoQuestionModel->read(['id'=>$task_id]); 62 $taskInfo = $geoQuestionModel->read(['id'=>$task_id]);