diff --git a/cps/web.py b/cps/web.py index 76152613..9ef90812 100644 --- a/cps/web.py +++ b/cps/web.py @@ -790,7 +790,9 @@ def get_tasks_status(): @app.route("/reconnect") def reconnect(): - db.reconnect_db(config) + db.session.close() + db.engine.dispose() + db.setup_db(config) return json.dumps({}) @web.route("/search", methods=["GET"])