Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Being able to check currently live/unfinished requests #30456
I think it would be nicer if I use an example scenario.
Assume that I run a command that checks if there is currently a live request being processed in the app (obviously the response hasn't been returned yet). If the app is free from requests then run some logic. Otherwise wait for all existing requests to be finished first.
Same time the command should prevent new requests coming in otherwise the logic will probably never run in very busy apps.
Does this make sense?
At first sight this looks like a too specific feature to be included in the Symfony core. Also, there should be already alternative ways of implementing this:
Much appreciated with your response. My exact case is this:
The reason why I am actually asking this is because, there will be cases I'll be renaming existing tables in DB which would be problem if there was live requests that depend on old table name.
What is your suggestion on this? If there is a solution for this, could you please direct me to the resource?