8000 Stop deleting messages on rejection · symfony/symfony@db73c02 · GitHub
[go: up one dir, main page]

Skip to content

Commit db73c02

Browse files
authored
Stop deleting messages on rejection
Unless `delete_after_ack` configuration is set to `true`. Fixes #36619
1 parent 75e71e3 commit db73c02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ public function reject(string $id): void
343343
{
344344
try {
345345
$deleted = $this->connection->xack($this->stream, $this->group, [$id]);
346-
$deleted = $this->connection->xdel($this->stream, [$id]) && $deleted;
346+
if ($this->deleteAfterAck) {
347+
$deleted = $this->connection->xdel($this->stream, [$id]) && $deleted;
348+
}
347349
} catch (\RedisException $e) {
348350
throw new TransportException($e->getMessage(), 0, $e);
349351
}

0 commit comments

Comments
 (0)
0