代码提交

This commit is contained in:
wong
2025-10-16 11:42:59 +08:00
parent 1083822513
commit 8bf6cbe1d4
3 changed files with 3 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ class WechatFriendCommand extends Command
// 检查队列是否已经在运行
$queueLockKey = "queue_lock:{$this->queueName}:{$isDel}";
Cache::rm($queueLockKey);
if (Cache::get($queueLockKey)) {
$output->writeln("队列 {$this->queueName} 已经在运行中,删除状态:{$isDel},跳过执行");
Log::warning("队列 {$this->queueName} 已经在运行中,删除状态:{$isDel},跳过执行");