Skip to content

Commit 207fb78

Browse files
Changes to skip the message retry
1 parent f727158 commit 207fb78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Plugin/HandleQueueMessageRejectPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function aroundReject(
3636
}
3737

3838
if (str_contains($rejectionMessage, 'MESSAGE_QUEUE_SKIP_RETRY')) {
39-
$proceed($envelope, $requeue, $rejectionMessage);
39+
$subject->acknowledge($envelope);
4040
return;
4141
}
4242

src/Test/Unit/Plugin/HandleQueueMessageRejectPluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testItShouldSkipRetryWhenExceptionMessageContainsAnUniqueIdentif
107107
$exceptionMessage
108108
);
109109

110-
self::assertTrue($this->isProceedCalled);
110+
self::assertFalse($this->isProceedCalled);
111111
}
112112

113113
public function skipRetryDataProvider(): array

0 commit comments

Comments
 (0)