I have a nodejs application where on certain POST request I execute some python scripts read the output and render the page. This works fine if the time taken in executing python script is small enough. But when execution time for python script exceeds certain limit the request gets posted again.
(t) URL betamon_deploy_a
(E) LOCALE locale
POST /betamon/deploy_a - - ms - -
(t) URL betamon_deploy_a
(E) LOCALE locale
I am new to nodejs, so I am not sure why its happening. Below are my code deatils:
$.post("deploy_a", {...}); and waits for response function(response) {},"json") and shows success or error messageres.write(JSON.stringify(model)); res.end();. Controller also stores the output in DbPlease let me know if any thing wrong with this approach.