From 0911b39107b6d781c6771a8bfaa03d943fb66a6b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 20 Jan 2017 21:55:37 -0600 Subject: [PATCH] Return migrated jobs for customization. --- LuaScripts.php | 2 +- RedisQueue.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LuaScripts.php b/LuaScripts.php index 4ce6acec..93ac0478 100644 --- a/LuaScripts.php +++ b/LuaScripts.php @@ -97,7 +97,7 @@ public static function migrateExpiredJobs() end end -return true +return val LUA; } } diff --git a/RedisQueue.php b/RedisQueue.php index a81c8d19..2c0037ac 100644 --- a/RedisQueue.php +++ b/RedisQueue.php @@ -174,11 +174,11 @@ protected function migrate($queue) * * @param string $from * @param string $to - * @return void + * @return array */ public function migrateExpiredJobs($from, $to) { - $this->getConnection()->eval( + return $this->getConnection()->eval( LuaScripts::migrateExpiredJobs(), 2, $from, $to, $this->currentTime() ); }