How to stop Flask app and subprocesses with Ctrl+C?
Clt+C
can be used to stop the Flask app, running on the development server. I would like also to stop the subprocesses that run with the app. With the stop_processes
and @app.teardown_appcontext
, I have tried to signal the closing of the app and trigger the termination of the subprocesses.
How to stop Flask app and subprocesses with Ctrl+C?
Clt+C
can be used to stop the Flask app, running on the development server. I would like also to stop the subprocesses that run with the app. With the stop_processes
and @app.teardown_appcontext
, I have tried to signal the closing of the app and trigger the termination of the subprocesses.