From 65d602ada61da02e7c555367a04e34a216f8d41f Mon Sep 17 00:00:00 2001 From: seth-shi <1033404553@qq.com> Date: Mon, 13 Jan 2025 15:04:46 +0800 Subject: [PATCH] fix: cluster redis eval reutnr false --- 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)); }); }