I ran a shell script in flask, and the problem now is that this shell script takes a long time and causes the front-end web to become unresponsive during the run, so we have to wait until the script is finished. Is there any way to solve it? I"ve tried that using ajax, doesn"t work, because calling ajax"s url to execute the script still causes the page to get stuck. I have also tried to open multithreaded app.run (thread=true), which can be solved, but I need to open a new web page. I would like to ask if there is a better way. In addition, this script only runs in the background, and the relevant echo does not need to be rendered to the front end.