Answer the question
In order to leave comments, you need to log in
How to run a backgroud job after a post request?
I made a post request to the route I needed - a background task was launched (which will last more than one day) - I immediately received a res.json response without any timeouts.
How to implement?
Answer the question
In order to leave comments, you need to log in
In a request handler, call an asynchronous function and don't wait for a response from it inside the handler.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question