Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/MessageHandler/MbinMessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function __construct(
*/
public function workWrapper(MessageInterface $message): void
{
gc_collect_cycles();

@BentiGorlich BentiGorlich Jul 18, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this make more sense to be called at the end? So after a message has been processed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would.
But if something goes very wrong, it might not reach this statement. As there are almost always new messages it should not make much of a difference.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the use case for finally ;)


// when we are in the test environment this would throw: ConnectionException: There is no active transaction.
if ('test' !== $this->kernel->getEnvironment()) {
$conn = $this->entityManager->getConnection();
Expand Down
Loading