正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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]); |
-
请 注册 或 登录 后发表评论