Skip to content

Commit fed2a71

Browse files
committed
fix(Kill): better request cleanup before dead
1 parent a078183 commit fed2a71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ def ping() -> flask.Response:
402402
@routes.route(schemas_dict["kill"]["route"], methods=schemas_dict["kill"]["methods"])
403403
def kill() -> flask.Response:
404404
print("Manual server kill, shutting down...", flush=True)
405+
utils_functions.teardown_request(flask.current_app)
405406
os._exit(0)
406407
return flask.make_response({"message": "Flask server is dead"}, 200)
407408

0 commit comments

Comments
 (0)