Skip to content

Commit

Permalink
fix: cluster redis eval reutnr false (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-shi authored Jan 13, 2025
1 parent 64c5c08 commit baef526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RedisQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
}

Expand Down

0 comments on commit baef526

Please sign in to comment.