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