Skip to content

Commit 19b6b79

Browse files
committed
Fix lock
1 parent c88afd5 commit 19b6b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core/Scheduler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function schedule(Schedule $schedule)
3131
$schedule->call(function () use ($schedulableQueue, $scheduleConfig) {
3232
$className = $schedulableQueue->class_name;
3333

34-
$lockKey = 'QUEUE_LOCK_' . $schedulableQueue->class_name . '_' . date('Y-m-d-H-i');
34+
$lockKey = 'QUEUE_LOCK_' . $schedulableQueue->name . '_' . date('Y-m-d-H-i');
3535

3636
if (\Cache::has($lockKey)) {
3737
return;
@@ -57,4 +57,4 @@ public static function schedule(Schedule $schedule)
5757
}
5858
}
5959

60-
}
60+
}

0 commit comments

Comments
 (0)