You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Ensures no messages are lost along the way when heartbeat is lost and ensures messages was peristed on the Broker side. Without this message can be simply "swallowed" without throwing exception */
83
-
$context->getExtChannel()->confirmSelect();
84
+
if (!$this->amqpTransactionInterceptor->isRunningInTransaction()) {
85
+
/** Ensures no messages are lost along the way when heartbeat is lost and ensures messages was peristed on the Broker side. Without this message can be simply "swallowed" without throwing exception */
$context->getExtChannel()->setConfirmCallback(fn() => false, fn() => thrownew \RuntimeException("Message was not sent to exchange {$exchangeName} with routing key {$routingKey}"));
93
-
$context->getExtChannel()->waitForConfirm();
96
+
if (!$this->amqpTransactionInterceptor->isRunningInTransaction()) {
$context->getExtChannel()->setConfirmCallback(fn() => false, fn() => thrownew \RuntimeException("Message was failed to be persisted in RabbitMQ instance. Check RabbitMQ server logs."));
0 commit comments