Skip to content

Commit

Permalink
Merge pull request #30 from run-as-root/feature/#27-ignore-exceptions
Browse files Browse the repository at this point in the history
Changes to skip the message retry
  • Loading branch information
cristiano-pacheco authored May 16, 2023
2 parents e5bf39e + 207fb78 commit 1f2cb77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Plugin/HandleQueueMessageRejectPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function aroundReject(
}

if (str_contains($rejectionMessage, 'MESSAGE_QUEUE_SKIP_RETRY')) {
$proceed($envelope, $requeue, $rejectionMessage);
$subject->acknowledge($envelope);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function testItShouldSkipRetryWhenExceptionMessageContainsAnUniqueIdentif
$exceptionMessage
);

self::assertTrue($this->isProceedCalled);
self::assertFalse($this->isProceedCalled);
}

public function skipRetryDataProvider(): array
Expand Down

0 comments on commit 1f2cb77

Please sign in to comment.