When upgrading from doctrine/orm 2.7 to doctrine/orm 2.8 it is possible you get following error when creating your custom entity manager:
If your Symfony Messenger message handler doesn’t finish executing it is mostly due to an error or a memory shortage. Also make sure your routing is set up correctly.
Imagine having a console command you use for cron jobs. And you would like to use that command when handling queued messages from the Symfony Messenger.