8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfccc6 commit 072e466Copy full SHA for 072e466
src/Symfony/Component/Messenger/Transport/RedisExt/Connection.php
@@ -89,7 +89,7 @@ public function get(): ?array
89
} catch (\RedisException $e) {
90
}
91
92
- if ($e || (false === $messages && !$this->couldHavePendingMessages)) {
+ if ($e || false === $messages) {
93
throw new TransportException(
94
($e ? $e->getMessage() : $this->connection->getLastError()) ?? 'Could not read messages from the redis stream.'
95
);
@@ -132,7 +132,8 @@ public function reject(string $id): void
132
{
133
$e = null;
134
try {
135
- $deleted = $this->connection->xdel($this->stream, [$id]);
+ $deleted = $this->connection->xack($this->stream, $this->group, [$id]);
136
+ $deleted = $this->connection->xdel($this->stream, [$id]) && $deleted;
137
138
139
0 commit comments