Symfony app gets stuck on getting EntityManager

I am working on an application that has a web component (visited through a browser) and a background task processing component to which the web component delegates some lengthy things.

I just got into a problem when I updated my web browser, only to find it to download indefinitely (first in AJAX, but later in a regular request).

It didn't look obvious, but as soon as I closed the background command Symfony, which also uses EntityManager, the browser unlocks and continues the request.

My application uses RabbitMQto store job requests that are published by a web component. The team Symfonyuses the same “backbone” to create the consumer RabbitMQand uses these tasks.

I tried, without any results:

  • Restart Apache
  • Reiteration RabbitMQ
  • Queue Cleanup RabbitMQ
  • Using different EntityManagersfor network and team

I use OldSoundRabbitMqBundle( link ) to facilitate the connection between the two.

The web component is stuck regardless of the action being invoked (not manufacturer-related RabbitMQ).

Has anyone stumbled upon a similar problem?

This happens in the dev block, I can’t do it by giving it a spin on the production server, and I won’t until I find out more about it.

+4
1

, Postgres. , , , Symfony, Doctrine .

: LOCK TABLE ( EXCLUSIVE). ( ) , ( 10- ).

.

, , , .

+3

Source: https://habr.com/ru/post/1689542/


All Articles