Answer the question
In order to leave comments, you need to log in
How to force to wait for the completion of the script execution and continue (some kind of queue)?
Good afternoon.
There is a script that can be accessed by many clients, how to make it so that until the current request is processed, do not execute a new one in parallel?
For example, a request has arrived, while it is being executed, other requests are waiting.
Answer the question
In order to leave comments, you need to log in
Form a queue from client requests, make a queue handler that will feed it to the script
I have a guess that this is what you need: https://github.com/OptimalBits/bull
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question