8000 [Messenger] Fix reading pending messages with Redis by nicolas-grekas · Pull Request #54637 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Messenger] Fix reading pending messages with Redis #54637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Messenger] Fix reading pending messages with Redis
  • Loading branch information
nicolas-grekas committed Apr 17, 2024
commit 8b3bf65577d62b0bdb4aac8f0a43095e4ff990e6
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private function claimOldPendingMessages()
try {
// This could soon be optimized with https://github.com/antirez/redis/issues/5212 or
// https://github.com/antirez/redis/issues/6256
$pendingMessages = $this->connection->xpending($this->stream, $this->group, '-', '+', 1);
$pendingMessages = $this->connection->xpending($this->stream, $this->group, '-', '+', 1) ?: [];
} catch (\RedisException $e) {
throw new TransportException($e->getMessage(), 0, $e);
}
Expand Down
0