Hello
I have a flask app that should run once and then be destroyed. It should be deployed, show the user a parameters form, accept the parameters, do some calculations and then return a PDF report and exit. If the user wants another report they will deploy the app again.
So basically I need a route that will run some functions, return the PDF file and exit the whole app.
Creating and returning the report works just fine but is there a way to kill the server internally ? Something like "exit(0)" ? And if yes then where in the code shoulr I put it ?
Thank you
Guy
I have a flask app that should run once and then be destroyed. It should be deployed, show the user a parameters form, accept the parameters, do some calculations and then return a PDF report and exit. If the user wants another report they will deploy the app again.
So basically I need a route that will run some functions, return the PDF file and exit the whole app.
Creating and returning the report works just fine but is there a way to kill the server internally ? Something like "exit(0)" ? And if yes then where in the code shoulr I put it ?
Thank you
Guy