From baef526f036717b0090754cbd9c9b67f879739fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=BD=E5=9B=BD=E9=B9=8F?= <1033404553@qq.com> Date: Tue, 14 Jan 2025 00:51:22 +0800 Subject: [PATCH] fix: cluster redis eval reutnr false (#1526) --- src/RedisQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RedisQueue.php b/src/RedisQueue.php index ff045153..27568396 100644 --- a/src/RedisQueue.php +++ b/src/RedisQueue.php @@ -154,7 +154,7 @@ public function pop($queue = null, $index = 0) public function migrateExpiredJobs($from, $to) { return tap(parent::migrateExpiredJobs($from, $to), function ($jobs) use ($to) { - $this->event($to, new JobsMigrated($jobs)); + $this->event($to, new JobsMigrated($jobs === false ? [] : $jobs)); }); }