diff --git a/src/Illuminate/Console/Scheduling/CacheEventMutex.php b/src/Illuminate/Console/Scheduling/CacheEventMutex.php index 3d1ad9247a1b..e6c16c6935a4 100644 --- a/src/Illuminate/Console/Scheduling/CacheEventMutex.php +++ b/src/Illuminate/Console/Scheduling/CacheEventMutex.php @@ -61,9 +61,8 @@ public function create(Event $event) public function exists(Event $event) { if ($this->shouldUseLocks($this->cache->store($this->store)->getStore())) { - return ! $this->cache->store($this->store)->getStore() - ->lock($event->mutexName(), $event->expiresAt * 60) - ->get(fn () => true); + return $this->cache->store($this->store)->getStore() + ->get($event->mutexName()) !== null; } return $this->cache->store($this->store)->has($event->mutexName());